summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-08-29 13:16:19 +0000
committerThiemo Seufer <ths@networkno.de>2006-08-29 13:16:19 +0000
commitd55f8e3f47477f954d55f482f49179517b048fac (patch)
treefc6d6e2f948e67530af5799ebf3d72a2b4e77391 /sim
parent80560fbebfa1c694b824478b491a43d93fab0a71 (diff)
downloadgdb-d55f8e3f47477f954d55f482f49179517b048fac.tar.gz
* sim-profile.c (profile_pc_init): Initialise default profiling
frequency to a prime number. (profile_print_pc): Convert gmon.out sample data into target byte order.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog7
-rw-r--r--sim/common/sim-profile.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 1768b403326..f90e95db267 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,10 @@
+2006-08-29 Nigel Stephens <nigel@mips.com>
+
+ * sim-profile.c (profile_pc_init): Initialise default profiling
+ frequency to a prime number.
+ (profile_print_pc): Convert gmon.out sample data into target
+ byte order.
+
2006-06-13 Richard Earnshaw <rearnsha@arm.com>
* aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c
index 20d7a541f31..787b0e9c5a1 100644
--- a/sim/common/sim-profile.c
+++ b/sim/common/sim-profile.c
@@ -519,7 +519,7 @@ profile_pc_init (SIM_DESC sd)
int bucket_size;
/* fill in the frequency if not specified */
if (PROFILE_PC_FREQ (data) == 0)
- PROFILE_PC_FREQ (data) = 256;
+ PROFILE_PC_FREQ (data) = 257;
/* fill in the start/end if not specified */
if (PROFILE_PC_END (data) == 0)
{
@@ -700,6 +700,7 @@ profile_print_pc (sim_cpu *cpu, int verbose)
sample = 0xffff;
else
sample = PROFILE_PC_COUNT (profile) [loop];
+ H2T (sample);
ok = fwrite (&sample, sizeof (sample), 1, pf);
}
if (ok == 0)