diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-09-11 05:50:50 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-09-11 05:50:50 +0000 |
commit | 8669a28810ab8b8c89017a8252626f121abd054a (patch) | |
tree | 6071a3df9af94c1ab559cfab19faa71776d3110d /src/mame/machine/dc.c | |
parent | e5bbf531533db76bdc34f102eec11494cdfda314 (diff) |
Add safe_pc() and safe_pcbase() methods to device_t.
Convert all cpu_get_pc() to safe_pc() and
cpu_getpreviouspc() to safe_basepc(). Removed the
old macros.
Diffstat (limited to 'src/mame/machine/dc.c')
-rw-r--r-- | src/mame/machine/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/dc.c b/src/mame/machine/dc.c index b0f023a43d7..b5c6205987d 100644 --- a/src/mame/machine/dc.c +++ b/src/mame/machine/dc.c @@ -353,7 +353,7 @@ READ64_HANDLER( dc_sysctrl_r ) #if DEBUG_SYSCTRL if ((reg != 0x40) && (reg != 0x41) && (reg != 0x42) && (reg != 0x23) && (reg > 2)) // filter out IRQ status reads { - mame_printf_verbose("SYSCTRL: [%08x] read %x @ %x (reg %x: %s), mask %" I64FMT "x (PC=%x)\n", 0x5f6800+reg*4, state->dc_sysctrl_regs[reg], offset, reg, sysctrl_names[reg], mem_mask, cpu_get_pc(&space->device())); + mame_printf_verbose("SYSCTRL: [%08x] read %x @ %x (reg %x: %s), mask %" I64FMT "x (PC=%x)\n", 0x5f6800+reg*4, state->dc_sysctrl_regs[reg], offset, reg, sysctrl_names[reg], mem_mask, space->device().safe_pc()); } #endif @@ -615,7 +615,7 @@ READ64_HANDLER( pvr_ctrl_r ) reg = decode_reg_64(offset, mem_mask, &shift); #if DEBUG_PVRCTRL - mame_printf_verbose("PVRCTRL: [%08x] read %x @ %x (reg %x), mask %" I64FMT "x (PC=%x)\n", 0x5f7c00+reg*4, state->pvrctrl_regs[reg], offset, reg, mem_mask, cpu_get_pc(&space->device())); + mame_printf_verbose("PVRCTRL: [%08x] read %x @ %x (reg %x), mask %" I64FMT "x (PC=%x)\n", 0x5f7c00+reg*4, state->pvrctrl_regs[reg], offset, reg, mem_mask, space->device().safe_pc()); #endif return (UINT64)state->pvrctrl_regs[reg] << shift; |