diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2007-02-20 00:14:11 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2007-02-20 00:14:11 +0000 |
commit | 2969094338b40627787b2c31f83b1c6513ddd21b (patch) | |
tree | 4ff51c25c5a341c9cfbe4494c27de7e98bd5d8de /sim | |
parent | 615808ebc5408ad7125fb56c33ea5f683aeec325 (diff) | |
download | gdb-2969094338b40627787b2c31f83b1c6513ddd21b.tar.gz |
* cris/traps.c (dump_statistics): Change format for cycle numbers
to %llu and cast parameters to unsigned long long.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/ChangeLog | 5 | ||||
-rw-r--r-- | sim/cris/traps.c | 38 |
2 files changed, 24 insertions, 19 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog index 245766a8e4b..f34b86250db 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,8 @@ +2007-02-20 Hans-Peter Nilsson <hp@axis.com> + + * cris/traps.c (dump_statistics): Change format for cycle numbers + to %llu and cast parameters to unsigned long long. + 2007-02-16 Thiemo Seufer <ths@mips.com> * Makefile.in (FLAGS_TO_PASS, TARGET_FLAGS_TO_PASS): Add RUNTEST. diff --git a/sim/cris/traps.c b/sim/cris/traps.c index 875a31e7293..02056ccceb0 100644 --- a/sim/cris/traps.c +++ b/sim/cris/traps.c @@ -870,25 +870,25 @@ dump_statistics (SIM_CPU *current_cpu) /* For v32, unaligned_mem_dword_count should always be 0. For v10, memsrc_stall_count should always be 0. */ - sim_io_eprintf (sd, "Memory source stall cycles: %lld\n", - profp->memsrc_stall_count - + profp->unaligned_mem_dword_count); - sim_io_eprintf (sd, "Memory read-after-write stall cycles: %lld\n", - profp->memraw_stall_count); - sim_io_eprintf (sd, "Movem source stall cycles: %lld\n", - profp->movemsrc_stall_count); - sim_io_eprintf (sd, "Movem destination stall cycles: %lld\n", - profp->movemdst_stall_count); - sim_io_eprintf (sd, "Movem address stall cycles: %lld\n", - profp->movemaddr_stall_count); - sim_io_eprintf (sd, "Multiplication source stall cycles: %lld\n", - profp->mulsrc_stall_count); - sim_io_eprintf (sd, "Jump source stall cycles: %lld\n", - profp->jumpsrc_stall_count); - sim_io_eprintf (sd, "Branch misprediction stall cycles: %lld\n", - profp->branch_stall_count); - sim_io_eprintf (sd, "Jump target stall cycles: %lld\n", - profp->jumptarget_stall_count); + sim_io_eprintf (sd, "Memory source stall cycles: %llu\n", + (unsigned long long) (profp->memsrc_stall_count + + profp->unaligned_mem_dword_count)); + sim_io_eprintf (sd, "Memory read-after-write stall cycles: %llu\n", + (unsigned long long) profp->memraw_stall_count); + sim_io_eprintf (sd, "Movem source stall cycles: %llu\n", + (unsigned long long) profp->movemsrc_stall_count); + sim_io_eprintf (sd, "Movem destination stall cycles: %llu\n", + (unsigned long long) profp->movemdst_stall_count); + sim_io_eprintf (sd, "Movem address stall cycles: %llu\n", + (unsigned long long) profp->movemaddr_stall_count); + sim_io_eprintf (sd, "Multiplication source stall cycles: %llu\n", + (unsigned long long) profp->mulsrc_stall_count); + sim_io_eprintf (sd, "Jump source stall cycles: %llu\n", + (unsigned long long) profp->jumpsrc_stall_count); + sim_io_eprintf (sd, "Branch misprediction stall cycles: %llu\n", + (unsigned long long) profp->branch_stall_count); + sim_io_eprintf (sd, "Jump target stall cycles: %llu\n", + (unsigned long long) profp->jumptarget_stall_count); } /* Check whether any part of [addr .. addr + len - 1] is already mapped. |