Search
lxdream.org :: lxdream :: r500:848e66eee418
lxdream 0.9.1
released Jun 29
Download Now
changeset500:848e66eee418
parent499:14b86c78d111
child501:41328c68bd73
authornkeynes
dateThu Nov 08 11:37:49 2007 +0000 (12 years ago)
Fix output formats
src/sh4/sh4stat.c
src/sh4/sh4stat.in
1.1 --- a/src/sh4/sh4stat.c Thu Nov 08 10:49:16 2007 +0000
1.2 +++ b/src/sh4/sh4stat.c Thu Nov 08 11:37:49 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4stat.c,v 1.1 2007-09-18 08:58:23 nkeynes Exp $
1.6 + * $Id: sh4stat.c,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 )
2.1 --- a/src/sh4/sh4stat.in Thu Nov 08 10:49:16 2007 +0000
2.2 +++ b/src/sh4/sh4stat.in Thu Nov 08 11:37:49 2007 +0000
2.3 @@ -1,5 +1,5 @@
2.4 /**
2.5 - * $Id: sh4stat.in,v 1.1 2007-09-18 08:58:23 nkeynes Exp $
2.6 + * $Id: sh4stat.in,v 1.2 2007-11-08 11:37:49 nkeynes Exp $
2.7 *
2.8 * Support module for collecting instruction stats
2.9 *
2.10 @@ -177,9 +177,9 @@
2.11 {
2.12 int i;
2.13 for( i=0; i<= I_UNDEF; i++ ) {
2.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 );
2.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 );
2.16 }
2.17 - fprintf( out, "Total: %d\n", sh4_stats_total );
2.18 + fprintf( out, "Total: %lld\n", sh4_stats_total );
2.19 }
2.20
2.21 void sh4_stats_add( uint32_t pc )
.