diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-02-03 13:28:28 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-02-03 13:28:28 +0000 |
commit | 61d6c04e858c36d02ad136a4b0f69c9e40b78abb (patch) | |
tree | 2177601a31a655b553ea754012aa1936581b2406 /src/emu/devlegcy.c | |
parent | eeda35d6139466e421dd5060d493a150a6336970 (diff) |
Removed LEGACY_MEMORY_DEVICE and LEGACY_NVRAM_DEVICE support in core, since nothing is using it anymore (no whatsnew)
Diffstat (limited to 'src/emu/devlegcy.c')
-rw-r--r-- | src/emu/devlegcy.c | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/src/emu/devlegcy.c b/src/emu/devlegcy.c index 185996188a8..0118b4e1926 100644 --- a/src/emu/devlegcy.c +++ b/src/emu/devlegcy.c @@ -271,88 +271,3 @@ void legacy_sound_device_base::sound_stream_update(sound_stream &stream, stream_ // should never get here fatalerror("legacy_sound_device_base::sound_stream_update called; not applicable to legacy sound devices\n"); } - - - -//************************************************************************** -// LEGACY MEMORY DEVICE -//************************************************************************** - -//------------------------------------------------- -// legacy_memory_device_base - constructor -//------------------------------------------------- - -legacy_memory_device_base::legacy_memory_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, device_get_config_func get_config) - : legacy_device_base(mconfig, type, tag, owner, clock, get_config), - device_memory_interface(mconfig, *this) -{ - memset(&m_space_config, 0, sizeof(m_space_config)); -} - - -//------------------------------------------------- -// device_config_complete - update configuration -// based on completed device setup -//------------------------------------------------- - -void legacy_memory_device_base::device_config_complete() -{ - m_space_config.m_name = "memory"; - m_space_config.m_endianness = static_cast<endianness_t>(get_legacy_int(DEVINFO_INT_ENDIANNESS)); - m_space_config.m_databus_width = get_legacy_int(DEVINFO_INT_DATABUS_WIDTH); - m_space_config.m_addrbus_width = get_legacy_int(DEVINFO_INT_ADDRBUS_WIDTH); - m_space_config.m_addrbus_shift = get_legacy_int(DEVINFO_INT_ADDRBUS_SHIFT); - m_space_config.m_logaddr_width = m_space_config.m_addrbus_width; - m_space_config.m_page_shift = 0; - m_space_config.m_internal_map = reinterpret_cast<address_map_constructor>(get_legacy_fct(DEVINFO_PTR_INTERNAL_MEMORY_MAP)); - m_space_config.m_default_map = reinterpret_cast<address_map_constructor>(get_legacy_fct(DEVINFO_PTR_DEFAULT_MEMORY_MAP)); -} - - - -//************************************************************************** -// LEGACY NVRAM DEVICE -//************************************************************************** - -//------------------------------------------------- -// legacy_nvram_device_base - constructor -//------------------------------------------------- - -legacy_nvram_device_base::legacy_nvram_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, device_get_config_func get_config) - : legacy_device_base(mconfig, type, tag, owner, clock, get_config), - device_nvram_interface(mconfig, *this) -{ -} - - -//------------------------------------------------- -// nvram_default - generate the default NVRAM -//------------------------------------------------- - -void legacy_nvram_device_base::nvram_default() -{ - device_nvram_func nvram_func = reinterpret_cast<device_nvram_func>(get_legacy_fct(DEVINFO_FCT_NVRAM)); - (*nvram_func)(this, NULL, FALSE); -} - - -//------------------------------------------------- -// nvram_read - read NVRAM from the given file -//------------------------------------------------- - -void legacy_nvram_device_base::nvram_read(emu_file &file) -{ - device_nvram_func nvram_func = reinterpret_cast<device_nvram_func>(get_legacy_fct(DEVINFO_FCT_NVRAM)); - (*nvram_func)(this, &file, FALSE); -} - - -//------------------------------------------------- -// nvram_write - write NVRAM to the given file -//------------------------------------------------- - -void legacy_nvram_device_base::nvram_write(emu_file &file) -{ - device_nvram_func nvram_func = reinterpret_cast<device_nvram_func>(get_legacy_fct(DEVINFO_FCT_NVRAM)); - (*nvram_func)(this, &file, TRUE); -} |