diff options
author | 2010-08-19 16:10:19 +0000 | |
---|---|---|
committer | 2010-08-19 16:10:19 +0000 | |
commit | 621a2faa2a384ccea46ee3630c57961b92070ed7 (patch) | |
tree | 960fd0c5fbc1b8fcc3b07ff2cc538048eaa7b9af /src/emu/cpu/adsp2100 | |
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/adsp2100')
-rw-r--r-- | src/emu/cpu/adsp2100/adsp2100.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/cpu/adsp2100/adsp2100.c b/src/emu/cpu/adsp2100/adsp2100.c index 369ffad523f..fdacd403510 100644 --- a/src/emu/cpu/adsp2100/adsp2100.c +++ b/src/emu/cpu/adsp2100/adsp2100.c @@ -264,6 +264,7 @@ typedef struct /* memory spaces */ address_space *program; + direct_read_data *direct; address_space *data; address_space *io; @@ -346,7 +347,7 @@ INLINE void WWORD_PGM(adsp2100_state *adsp, UINT32 addr, UINT32 data) adsp->program->write_dword(addr << 2, data & 0xffffff); } -#define ROPCODE(a) memory_decrypted_read_dword((a)->program, (a)->pc << 2) +#define ROPCODE(a) (a)->direct->read_decrypted_dword((a)->pc << 2) /*************************************************************************** @@ -578,6 +579,7 @@ static adsp2100_state *adsp21xx_init(legacy_cpu_device *device, device_irq_callb /* fetch device parameters */ adsp->device = device; adsp->program = device->space(AS_PROGRAM); + adsp->direct = &adsp->program->direct(); adsp->data = device->space(AS_DATA); adsp->io = device->space(AS_IO); |