Search
lxdream.org :: lxdream/src/sh4/sh4stat.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4stat.in
changeset 500:848e66eee418
prev387:38e9fddbf0e3
next561:533f6b478071
author nkeynes
date Thu Nov 08 11:37:49 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix output formats
file annotate diff log raw
1.1 --- a/src/sh4/sh4stat.in Tue Sep 18 08:58:23 2007 +0000
1.2 +++ b/src/sh4/sh4stat.in Thu Nov 08 11:37:49 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4stat.in,v 1.1 2007-09-18 08:58:23 nkeynes Exp $
1.6 + * $Id: sh4stat.in,v 1.2 2007-11-08 11:37:49 nkeynes Exp $
1.7 *
1.8 * Support module for collecting instruction stats
1.9 *
1.10 @@ -177,9 +177,9 @@
1.11 {
1.12 int i;
1.13 for( i=0; i<= I_UNDEF; i++ ) {
1.14 - fprintf( out, "%-20s\t%d\t%.2f%\n", sh4_stats_names[i], (uint32_t)sh4_stats[i], ((double)sh4_stats[i])*100.0/(double)sh4_stats_total );
1.15 + fprintf( out, "%-20s\t%d\t%.2f%%\n", sh4_stats_names[i], (uint32_t)sh4_stats[i], ((double)sh4_stats[i])*100.0/(double)sh4_stats_total );
1.16 }
1.17 - fprintf( out, "Total: %d\n", sh4_stats_total );
1.18 + fprintf( out, "Total: %lld\n", sh4_stats_total );
1.19 }
1.20
1.21 void sh4_stats_add( uint32_t pc )
.