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/sh2/sh2drc.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/sh2/sh2drc.c')
-rw-r--r-- | src/emu/cpu/sh2/sh2drc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/emu/cpu/sh2/sh2drc.c b/src/emu/cpu/sh2/sh2drc.c index 22473a91ec5..97e0e609b46 100644 --- a/src/emu/cpu/sh2/sh2drc.c +++ b/src/emu/cpu/sh2/sh2drc.c @@ -890,7 +890,6 @@ static CPU_EXECUTE( sh2 ) code_flush_cache(sh2); /* execute */ - sh2->icount = cycles; do { /* run as much as we can */ @@ -910,9 +909,6 @@ static CPU_EXECUTE( sh2 ) code_flush_cache(sh2); } } while (execute_result != EXECUTE_OUT_OF_CYCLES); - - /* return the number of cycles executed */ - return cycles - sh2->icount; } /*------------------------------------------------- |