diff options
author | Aaron Giles <aaron@aarongiles.com> | 2010-08-19 16:10:19 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2010-08-19 16:10:19 +0000 |
commit | 621a2faa2a384ccea46ee3630c57961b92070ed7 (patch) | |
tree | 960fd0c5fbc1b8fcc3b07ff2cc538048eaa7b9af /src/emu/cpu/m6502/m65ce02.c | |
parent | 9bbc2e2f00ac611c79969db389043cd035e4215d (diff) |
Remove final set of legacy inlines from memory.h. Mostly affects CPU
cores, which all now cache a copy of space->direct() and use it for
direct accesses.
Diffstat (limited to 'src/emu/cpu/m6502/m65ce02.c')
-rw-r--r-- | src/emu/cpu/m6502/m65ce02.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/cpu/m6502/m65ce02.c b/src/emu/cpu/m6502/m65ce02.c index a81056b7fb2..74b781102d3 100644 --- a/src/emu/cpu/m6502/m65ce02.c +++ b/src/emu/cpu/m6502/m65ce02.c @@ -77,6 +77,7 @@ struct _m65ce02_Regs { device_irq_callback irq_callback; legacy_cpu_device *device; address_space *space; + direct_read_data *direct; read8_space_func rdmem_id; /* readmem callback for indexed instructions */ write8_space_func wrmem_id; /* writemem callback for indexed instructions */ }; @@ -107,6 +108,7 @@ static CPU_INIT( m65ce02 ) cpustate->irq_callback = irqcallback; cpustate->device = device; cpustate->space = device->space(AS_PROGRAM); + cpustate->direct = &cpustate->space->direct(); if ( intf ) { |