From 621ac620ae1ca743a66bb52aaf5478da01c3bac6 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 19 Sep 2012 19:48:09 +0000 Subject: 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. --- src/emu/cpu/tms32031/tms32031.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/cpu/tms32031/tms32031.c') diff --git a/src/emu/cpu/tms32031/tms32031.c b/src/emu/cpu/tms32031/tms32031.c index dcb6f0c8d5a..f81fc2c3bdf 100644 --- a/src/emu/cpu/tms32031/tms32031.c +++ b/src/emu/cpu/tms32031/tms32031.c @@ -368,7 +368,7 @@ inline void tms3203x_device::WMEM(offs_t addr, UINT32 data) void tms3203x_device::device_start() { // find address spaces - m_program = space(AS_PROGRAM); + m_program = &space(AS_PROGRAM); m_direct = &m_program->direct(); // save state -- cgit v1.2.3-70-g09d2