Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 671:a530ea88eebd
prev669:ab344e42bca9
next736:a02d1475ccfd
author nkeynes
date Thu May 15 10:22:39 2008 +0000 (13 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/sh4.c Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/sh4/sh4.c Thu May 15 10:22:39 2008 +0000
1.3 @@ -20,7 +20,7 @@
1.4 #define MODULE sh4_module
1.5 #include <math.h>
1.6 #include <assert.h>
1.7 -#include "dream.h"
1.8 +#include "lxdream.h"
1.9 #include "dreamcast.h"
1.10 #include "mem.h"
1.11 #include "clock.h"
1.12 @@ -83,6 +83,9 @@
1.13 MMU_init();
1.14 TMU_init();
1.15 sh4_reset();
1.16 +#ifdef ENABLE_SH4STATS
1.17 + sh4_stats_reset();
1.18 +#endif
1.19 }
1.20
1.21 void sh4_start(void)
1.22 @@ -117,7 +120,10 @@
1.23 MMU_reset();
1.24 TMU_reset();
1.25 SCIF_reset();
1.26 +
1.27 +#ifdef ENABLE_SH4STATS
1.28 sh4_stats_reset();
1.29 +#endif
1.30 }
1.31
1.32 void sh4_stop(void)
.