diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2015-02-19 23:31:24 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-02-21 23:27:24 -0500 |
commit | 96d67095792f5c8c0c91522820de861e54c37728 (patch) | |
tree | 66279354644eb7be5545b3c2272db5e8ec3c2ee7 /sim/erc32/sis.h | |
parent | bb6ead917c6aa8159281cac13b603e43035dcea3 (diff) | |
download | gdb-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.h | 5 |
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); |