From 09d58a6c7f05592add0a29b0e47412d73cd520f6 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sat, 9 May 2009 05:30:43 +0000 Subject: [PATCH] Removed address_map2 items from the CPU config, etc. --- src/emu/cpuexec.h | 3 +-- src/emu/memory.c | 2 -- src/emu/validity.c | 7 ------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/emu/cpuexec.h b/src/emu/cpuexec.h index f4ce2534d06..ca429aa1ba1 100644 --- a/src/emu/cpuexec.h +++ b/src/emu/cpuexec.h @@ -63,8 +63,7 @@ struct _cpu_config { cpu_type type; /* index for the CPU type */ UINT32 flags; /* flags; see #defines below */ - const addrmap_token *address_map[ADDRESS_SPACES]; /* 2 memory maps per address space */ - const addrmap_token *address_map2[ADDRESS_SPACES]; /* 2 memory maps per address space */ + const addrmap_token *address_map[ADDRESS_SPACES]; /* 1 memory map per address space */ cpu_interrupt_func vblank_interrupt; /* for interrupts tied to VBLANK */ int vblank_interrupts_per_frame;/* usually 1 */ const char * vblank_interrupt_screen; /* the screen that causes the VBLANK interrupt */ diff --git a/src/emu/memory.c b/src/emu/memory.c index 0c8b7232000..8f219cec350 100644 --- a/src/emu/memory.c +++ b/src/emu/memory.c @@ -778,8 +778,6 @@ address_map *address_map_alloc(const device_config *device, const game_driver *d /* construct the standard map */ if (cpuconfig->address_map[spacenum] != NULL) map_detokenize(map, driver, device->tag, cpuconfig->address_map[spacenum]); - if (cpuconfig->address_map2[spacenum] != NULL) - map_detokenize(map, driver, device->tag, cpuconfig->address_map2[spacenum]); return map; } diff --git a/src/emu/validity.c b/src/emu/validity.c index 77de5af944b..88461cfd86b 100644 --- a/src/emu/validity.c +++ b/src/emu/validity.c @@ -782,13 +782,6 @@ static int validate_cpu(int drivnum, const machine_config *config, const input_p address_map_entry *entry; address_map *map; - /* check to see that the same map is not used twice */ - if (cpuconfig->address_map[spacenum] != NULL && cpuconfig->address_map[spacenum] == cpuconfig->address_map2[spacenum]) - { - mame_printf_error("%s: %s uses identical memory maps for CPU '%s' spacenum %d\n", driver->source_file, driver->name, device->tag, spacenum); - error = TRUE; - } - /* construct the maps */ map = address_map_alloc(device, driver, spacenum);