Search
lxdream.org :: lxdream/src/sh4/sh4stat.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4stat.c
changeset 671:a530ea88eebd
prev561:533f6b478071
next673:44c579439d73
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/sh4stat.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/sh4/sh4stat.c Thu May 15 10:22:39 2008 +0000
1.3 @@ -182,7 +182,13 @@
1.4 fprintf( out, "Total: %lld\n", sh4_stats_total );
1.5 }
1.6
1.7 -void sh4_stats_add( uint32_t pc )
1.8 +void sh4_stats_add( sh4_inst_id item )
1.9 +{
1.10 + sh4_stats[item]++;
1.11 + sh4_stats_total++;
1.12 +}
1.13 +
1.14 +void sh4_stats_add_by_pc( uint32_t pc )
1.15 {
1.16 uint16_t ir = sh4_read_word(pc);
1.17 #define UNDEF() sh4_stats[0]++
.