diff options
author | Aaron Giles <aaron@aarongiles.com> | 2010-06-09 16:20:50 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2010-06-09 16:20:50 +0000 |
commit | eba2c140607c146d368e48539bd11e87fdfbeed6 (patch) | |
tree | ac3fa335cf9f364420c435ee2eeaf44173dab0e7 /src/emu/cpu/sharc/sharc.c | |
parent | ebdc4525f96f465a61acb76c728de48b3a89800c (diff) |
Change cpu execute function to just use the icount stuffed by
the scheduler, rather than manging an incoming cycle count. It was
confusing to have multiple sources of cycle counts.
Diffstat (limited to 'src/emu/cpu/sharc/sharc.c')
-rw-r--r-- | src/emu/cpu/sharc/sharc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/emu/cpu/sharc/sharc.c b/src/emu/cpu/sharc/sharc.c index 00866dac10c..0d254d11de1 100644 --- a/src/emu/cpu/sharc/sharc.c +++ b/src/emu/cpu/sharc/sharc.c @@ -670,14 +670,13 @@ static void check_interrupts(SHARC_REGS *cpustate) static CPU_EXECUTE( sharc ) { SHARC_REGS *cpustate = get_safe_token(device); - cpustate->icount = cycles; if (cpustate->idle && cpustate->irq_active == 0) { // handle pending DMA transfers if (cpustate->dmaop_cycles > 0) { - cpustate->dmaop_cycles -= cycles; + cpustate->dmaop_cycles -= cpustate->icount; if (cpustate->dmaop_cycles <= 0) { cpustate->dmaop_cycles = 0; @@ -691,8 +690,6 @@ static CPU_EXECUTE( sharc ) cpustate->icount = 0; debugger_instruction_hook(device, cpustate->daddr); - - return cycles; } if (cpustate->irq_active != 0) { @@ -838,8 +835,6 @@ static CPU_EXECUTE( sharc ) --cpustate->icount; }; - - return cycles - cpustate->icount; } /************************************************************************** |