summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/dirom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/dirom.h')
-rw-r--r--src/emu/dirom.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/dirom.h b/src/emu/dirom.h
index 1173a1b5d35..72d844f8b0e 100644
--- a/src/emu/dirom.h
+++ b/src/emu/dirom.h
@@ -22,6 +22,7 @@ public:
template <typename... T> void set_map(T &&... args) { set_addrmap(0, std::forward<T>(args)...); }
template <typename T> void set_device_rom_tag(T &&tag) { m_rom_region.set_tag(std::forward<T>(tag)); }
+ template <typename T> void set_space(T &&tag, int spacenum) { m_rom_space.set_tag(tag, spacenum); }
u8 read_byte(offs_t addr) { return m_rom_cache.read_byte(addr); }
u16 read_word(offs_t addr) { return m_rom_cache.read_word(addr); }
@@ -40,6 +41,7 @@ protected:
private:
optional_memory_region m_rom_region;
+ optional_address_space m_rom_space;
address_space_config m_rom_config;
typename memory_access<AddrWidth, DataWidth, AddrShift, Endian>::cache m_rom_cache;