From c0f366c61374775f8f8b7661e84705b568134dea Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 7 Apr 2016 18:59:38 -0400 Subject: Devfind revision phase 1, cleaning out some legacy stuff - Eliminate the cached device_t::m_region pointer and its region() getter method. Devices that need to bind to a region with the same tag should use optional/required_memory_region or optional/required_region_ptr with DEVICE_SELF as the subtag; this improves error checking. (DEVICE_SELF has been moved to device.h for greater visibility in the source.) - Allow required/optional_region_ptr to specify a specific length which must match that of the region found. - Implement finder_base::finder_tag() getter for diagnostic purposes. - Perform some (not very efficient) validity checks on memory region finders instead of allowing them to automatically pass. - Privatize device_memory_interface::m_addrspace. --- src/devices/machine/eeprom.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/devices/machine/eeprom.h') diff --git a/src/devices/machine/eeprom.h b/src/devices/machine/eeprom.h index 23ba81cf42f..6eb802641e3 100644 --- a/src/devices/machine/eeprom.h +++ b/src/devices/machine/eeprom.h @@ -97,6 +97,8 @@ protected: UINT32 internal_read(offs_t address); void internal_write(offs_t address, UINT32 data); + optional_memory_region m_region; + // configuration state UINT32 m_cells; UINT8 m_address_bits; -- cgit v1.2.3