aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/sis.h
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2015-02-19 23:31:24 +0100
committerMike Frysinger <vapier@gentoo.org>2015-02-21 23:27:24 -0500
commit96d67095792f5c8c0c91522820de861e54c37728 (patch)
tree66279354644eb7be5545b3c2272db5e8ec3c2ee7 /sim/erc32/sis.h
parentbb6ead917c6aa8159281cac13b603e43035dcea3 (diff)
downloadgdb-96d67095792f5c8c0c91522820de861e54c37728.zip
gdb-96d67095792f5c8c0c91522820de861e54c37728.tar.gz
gdb-96d67095792f5c8c0c91522820de861e54c37728.tar.bz2
sim/erc32: Fix incorrect simulator performance report
Diffstat (limited to 'sim/erc32/sis.h')
-rw-r--r--sim/erc32/sis.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/erc32/sis.h b/sim/erc32/sis.h
index f49d45d..dc02c65 100644
--- a/sim/erc32/sis.h
+++ b/sim/erc32/sis.h
@@ -110,14 +110,14 @@ struct pstate {
float32 freq; /* Simulated processor frequency */
- uint64 tottime;
+ double tottime;
uint64 ninst;
uint64 fholdt;
uint64 holdt;
uint64 icntt;
uint64 finst;
uint64 simstart;
- uint64 starttime;
+ double starttime;
uint64 tlimit; /* Simulation time limit */
uint64 pwdtime; /* Cycles in power-down mode */
uint64 nstore; /* Number of load instructions */
@@ -198,6 +198,7 @@ extern void reset_all (void);
extern void sys_reset (void);
extern void sys_halt (void);
extern int bfd_load (char *fname);
+extern double get_time (void);
/* exec.c */
extern int dispatch_instruction (struct pstate *sregs);