diff options
author | 2008-11-10 07:42:09 +0000 | |
---|---|---|
committer | 2008-11-10 07:42:09 +0000 | |
commit | 92f305310513e310dcca7f5b1c3fe7ec2b197775 (patch) | |
tree | 26a4873c3e46ad13db9d1a92de2be5179754d95b /src/emu/machine/intelfsh.c | |
parent | 7c2bd582be58669e84d3bfd2c927401641a7fa80 (diff) |
Major cpuintrf changes:
* added a set of cpu_* calls which accept a CPU device object;
these are now the preferred means of manipulating a CPU
* removed the cpunum_* calls; added an array of cpu[] to the
running_machine object; converted all existing cpunum_* calls
to cpu_* calls, pulling the CPU device object from the new
array in the running_machine
* removed the activecpu_* calls; added an activecpu member to
the running_machine object; converted all existing activecpu_*
calls to cpu_* calls, pulling the active CPU device object
from the running_machine
* changed cpuintrf_push_context() to cpu_push_context(), taking
a CPU object pointer; changed cpuintrf_pop_context() to
cpu_pop_context(); eventually these will go away
* many other similar changes moving toward a model where all CPU
references are done by the CPU object and not by index
Diffstat (limited to 'src/emu/machine/intelfsh.c')
-rw-r--r-- | src/emu/machine/intelfsh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/intelfsh.c b/src/emu/machine/intelfsh.c index 854237987f3..7d29e128ff3 100644 --- a/src/emu/machine/intelfsh.c +++ b/src/emu/machine/intelfsh.c @@ -212,7 +212,7 @@ UINT32 intelflash_read(int chip, UINT32 address) break; } -// logerror( "%08x: intelflash_read( %d, %08x ) %08x\n", activecpu_get_pc(), chip, address, data ); +// logerror( "%08x: intelflash_read( %d, %08x ) %08x\n", cpu_get_pc(machine->activecpu), chip, address, data ); return data; } @@ -227,7 +227,7 @@ void intelflash_write(int chip, UINT32 address, UINT32 data) } c = &chips[ chip ]; -// logerror( "%08x: intelflash_write( %d, %08x, %08x )\n", activecpu_get_pc(), chip, address, data ); +// logerror( "%08x: intelflash_write( %d, %08x, %08x )\n", cpu_get_pc(machine->activecpu), chip, address, data ); switch( c->flash_mode ) { |