diff options
author | 2012-09-19 19:48:09 +0000 | |
---|---|---|
committer | 2012-09-19 19:48:09 +0000 | |
commit | 621ac620ae1ca743a66bb52aaf5478da01c3bac6 (patch) | |
tree | 2743a87e9077417af7546970d1ea1cc3b8781a63 /src/mess/machine/x68k_neptunex.c | |
parent | 33c77e65bbd4513957f2ece623cee476cf439248 (diff) |
Since nobody checks for NULLs anyway, make
device_memory_interface::space() assert against NULL and
return a reference, and pushed references throughout all
address space usage in the system. Added a has_space()
method to check for those rare case when it is ambiguous.
[Aaron Giles]
Also reinstated the generic space and added fatal error
handlers if anyone tries to actually read/write from it.
Diffstat (limited to 'src/mess/machine/x68k_neptunex.c')
-rw-r--r-- | src/mess/machine/x68k_neptunex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mess/machine/x68k_neptunex.c b/src/mess/machine/x68k_neptunex.c index f045b52b09c..a92db6f4ded 100644 --- a/src/mess/machine/x68k_neptunex.c +++ b/src/mess/machine/x68k_neptunex.c @@ -47,7 +47,7 @@ void x68k_neptune_device::device_start() device_t* cpu = machine().device("maincpu"); char mac[7]; UINT32 num = rand(); - address_space& space = *cpu->memory().space(AS_PROGRAM); + address_space& space = cpu->memory().space(AS_PROGRAM); m_slot = dynamic_cast<x68k_expansion_slot_device *>(owner()); memset(m_prom, 0x57, 16); sprintf(mac+2, "\x1b%c%c%c", (num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff); |