diff options
author | 2010-06-09 16:20:50 +0000 | |
---|---|---|
committer | 2010-06-09 16:20:50 +0000 | |
commit | eba2c140607c146d368e48539bd11e87fdfbeed6 (patch) | |
tree | ac3fa335cf9f364420c435ee2eeaf44173dab0e7 /src/emu/cpu/dsp56k | |
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/dsp56k')
-rw-r--r-- | src/emu/cpu/dsp56k/dsp56k.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/emu/cpu/dsp56k/dsp56k.c b/src/emu/cpu/dsp56k/dsp56k.c index 909f8b08a43..d5b6eb7e30f 100644 --- a/src/emu/cpu/dsp56k/dsp56k.c +++ b/src/emu/cpu/dsp56k/dsp56k.c @@ -319,13 +319,18 @@ static CPU_EXECUTE( dsp56k ) /* If reset line is asserted, do nothing */ if (cpustate->reset_state) - return cycles; + { + cpustate->icount = 0; + return; + } /* HACK - if you're in bootstrap mode, simply pretend you ate up all your cycles waiting for data. */ if (cpustate->bootstrap_mode != BOOTSTRAP_OFF) - return cycles; + { + cpustate->icount = 0; + return; + } - cpustate->icount = cycles; cpustate->icount -= cpustate->interrupt_cycles; cpustate->interrupt_cycles = 0; @@ -337,8 +342,6 @@ static CPU_EXECUTE( dsp56k ) cpustate->icount -= cpustate->interrupt_cycles; cpustate->interrupt_cycles = 0; - - return cycles - cpustate->icount; } |