summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/memory.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-07-29 17:08:43 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-07-29 17:08:43 +0000
commite70d4b0a85de3126bcc47a0f8efa1fe7aafade10 (patch)
tree5ae6084ecbdd33505a29677677f2b0db840d6a12 /src/emu/memory.h
parent212c069fd98bb89318623a34d6e395dae14d0826 (diff)
(Modified to allow for overwrites of RAM ranges only.)
From: Atari Ace [mailto:atari_ace@verizon.net] Subject: [patch] Stricter ADDRESS_MAP checks Hi mamedev, The current implementation of address maps is lacking some useful checks of the initial tokens. In particular, it doesn't validate that a particular entry doesn't try to define the same handler multiple times. The attached patch adds this and some other validations as fatalerrors in address_map_detokenize, and fixes the affected maps. The errors generally fall into the following categories. 1. AM_RAM AM_WRITE(...). Should have been AM_RAM_WRITE(...) 2. AM_RAM AM_READWRITE(...). The AM_RAM is a NOP. 3. AM_RAM AM_RAMBANK(...). The AM_RAM is a NOP. 4. AM_ROM AM_ROMBANK(...). The AM_ROM is a NOP. 5. AM_ROM AM_READ(...). The AM_ROM is a NOP. One peculiar error was in equites.c, where there were two AM_BASE entries. ~aa
Diffstat (limited to 'src/emu/memory.h')
-rw-r--r--src/emu/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/memory.h b/src/emu/memory.h
index f8cfe0a7bac..23f4d7c6f20 100644
--- a/src/emu/memory.h
+++ b/src/emu/memory.h
@@ -844,7 +844,7 @@ const data_accessors *memory_get_accessors(int spacenum, int databits, int endia
/* ----- address maps ----- */
/* build and allocate an address map for a CPU's address space */
-address_map *address_map_alloc(const machine_config *drv, int cpunum, int spacenum);
+address_map *address_map_alloc(const machine_config *drv, const game_driver *driver, int cpunum, int spacenum);
/* release allocated memory for an address map */
void address_map_free(address_map *map);