From bec8aa50de756a3e30c6e09710974582dd1d3195 Mon Sep 17 00:00:00 2001 From: gocha Date: Fri, 4 Sep 2009 22:31:59 +0000 Subject: [PATCH] Make instruction cycles same as GDB_STUB build (decreased all instruction cycles by 1) --- desmume/src/armcpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/armcpu.cpp b/desmume/src/armcpu.cpp index 30586285d..247c610c4 100644 --- a/desmume/src/armcpu.cpp +++ b/desmume/src/armcpu.cpp @@ -497,7 +497,7 @@ armcpu_flagIrq( armcpu_t *armcpu) { template u32 armcpu_exec() { - u32 c = 1; + u32 c = 0; //this assert is annoying. but sometimes it is handy. //assert(ARMPROC.instruct_adr!=0x00000000); @@ -511,7 +511,7 @@ u32 armcpu_exec() armcpu_irqException( &ARMPROC); } - c = armcpu_prefetch(&ARMPROC); + c += armcpu_prefetch(&ARMPROC); if ( ARMPROC.stalled) { return c;