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/jaguar | |
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/jaguar')
-rw-r--r-- | src/emu/cpu/jaguar/jaguar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/cpu/jaguar/jaguar.c b/src/emu/cpu/jaguar/jaguar.c index b25dcc4957f..a6ca6f989bb 100644 --- a/src/emu/cpu/jaguar/jaguar.c +++ b/src/emu/cpu/jaguar/jaguar.c @@ -102,6 +102,7 @@ struct _jaguar_state jaguar_int_func cpu_interrupt; legacy_cpu_device *device; address_space *program; + direct_read_data *direct; }; @@ -240,7 +241,7 @@ static void (*const dsp_op_table[64])(jaguar_state *jaguar, UINT16 op) = MEMORY ACCESSORS ***************************************************************************/ -#define ROPCODE(J,pc) (memory_decrypted_read_word((J)->program, WORD_XOR_BE((UINT32)(pc)))) +#define ROPCODE(J,pc) ((J)->direct->read_decrypted_word(WORD_XOR_BE((UINT32)(pc)))) @@ -421,6 +422,7 @@ static void init_common(int isdsp, legacy_cpu_device *device, device_irq_callbac jaguar->irq_callback = irqcallback; jaguar->device = device; jaguar->program = device->space(AS_PROGRAM); + jaguar->direct = &jaguar->program->direct(); if (configdata != NULL) jaguar->cpu_interrupt = configdata->cpu_int_callback; |