aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/func.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2015-03-17 22:02:38 +0100
committerMike Frysinger <vapier@gentoo.org>2015-03-17 18:51:44 -0400
commit638fcdad6a0de44f6c91b503280207fc1f34ff9e (patch)
tree151b330acdc3da974cb11d3c012dd2778784a7c8 /sim/erc32/func.c
parent029f3522619e8b77a7b848be23f4c13e50087d8b (diff)
downloadgdb-638fcdad6a0de44f6c91b503280207fc1f34ff9e.zip
gdb-638fcdad6a0de44f6c91b503280207fc1f34ff9e.tar.gz
gdb-638fcdad6a0de44f6c91b503280207fc1f34ff9e.tar.bz2
sim/erc32: Added -v command line switch for verbose output
Diffstat (limited to 'sim/erc32/func.c')
-rw-r--r--sim/erc32/func.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/erc32/func.c b/sim/erc32/func.c
index 69d5eba..260ceff 100644
--- a/sim/erc32/func.c
+++ b/sim/erc32/func.c
@@ -28,6 +28,7 @@
#include "sis.h"
#include <dis-asm.h>
#include "sim-config.h"
+#include <inttypes.h>
#define VAL(x) strtoul(x,(char **)NULL,0)
@@ -642,8 +643,8 @@ show_stat(sregs)
sregs->nbranch;
#endif
- printf("\n Cycles : %9d\n\r", ebase.simtime - sregs->simstart);
- printf(" Instructions : %9d\n", sregs->ninst);
+ printf("\n Cycles : %9" PRIu64 "\n\r", ebase.simtime - sregs->simstart);
+ printf(" Instructions : %9" PRIu64 "\n", sregs->ninst);
#ifdef STAT
printf(" integer : %9.2f %%\n", 100.0 * (float) iinst / (float) sregs->ninst);