summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2010-03-03 05:39:35 +0100
committerSegher Boessenkool <segher@kernel.crashing.org>2010-04-03 03:15:10 +0200
commit417442592bb907693183cf8e4a5595c9b8e9f0d8 (patch)
tree013cbca8a01606e202453ff75ebdf393ae8e8cee
parent0a68961158c837a9ea45557cf5c962ada9776db3 (diff)
Remove insn_count
It showed up pretty heavily on the execution profile. It's not terribly useful anymore, let's just kill it.
-rw-r--r--emu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/emu.c b/emu.c
index cebf4c0..34f5ba2 100644
--- a/emu.c
+++ b/emu.c
@@ -45,7 +45,6 @@ static u8 sb_banked[3];
static u8 irq_active, fiq_active;
static u8 irq_enabled, fiq_enabled;
-static u64 insn_count;
static u32 cycle_count;
static u32 line_count;
static const u32 cycles_per_line = 1728; // 1728 for PAL, 1716 for NTSC
@@ -158,7 +157,7 @@ static void print_state(void)
{
int i;
- printf("\n[insn_count = %llu]\n", insn_count);
+ printf("\n");
printf(" SP R1 R2 R3 R4 BP SR PC CS NZSC DS SB IRQ FIQ\n");
for (i = 0; i < 8; i++)
printf("%04x ", reg[i]);
@@ -808,9 +807,7 @@ static void run_line(void)
}
step();
- insn_count++;
if (cycle_count >= cycles_per_line) {
-// printf("PING!\n");
cycle_count -= cycles_per_line;
break;
}