Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 671:a530ea88eebd
prev669:ab344e42bca9
next732:f05753bbe723
author nkeynes
date Thu May 15 10:22:39 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Permanently add SH4 instruction statistics tracking (enabled with --enable-sh4stats)
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/sh4/sh4core.c Thu May 15 10:22:39 2008 +0000
1.3 @@ -28,6 +28,7 @@
1.4 #include "syscall.h"
1.5 #include "sh4/sh4core.h"
1.6 #include "sh4/sh4mmio.h"
1.7 +#include "sh4/sh4stat.h"
1.8 #include "sh4/intc.h"
1.9
1.10 #define SH4_CALLTRACE 1
1.11 @@ -228,9 +229,14 @@
1.12 sh4r.in_delay_slot = 0;
1.13 pc = sh4r.pc = sh4r.pr;
1.14 sh4r.new_pc = sh4r.pc + 2;
1.15 + return TRUE;
1.16 }
1.17 CHECKRALIGN16(pc);
1.18
1.19 +#ifdef ENABLE_SH4STATS
1.20 + sh4_stats_add_by_pc(sh4r.pc);
1.21 +#endif
1.22 +
1.23 /* Read instruction */
1.24 if( !IS_IN_ICACHE(pc) ) {
1.25 if( !mmu_update_icache(pc) ) {
.