aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/mon.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-28 18:47:07 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-28 18:47:07 +0000
commit290ad14a9dd688a94344e1c21e681e2e8d01b0f1 (patch)
tree6cd17c9b356f288fa36d40ade3730e494cd34e7d /sim/ppc/mon.c
parent5aca405826b00ce4fc00055618eeab3e7e231076 (diff)
downloadgdb-290ad14a9dd688a94344e1c21e681e2e8d01b0f1.zip
gdb-290ad14a9dd688a94344e1c21e681e2e8d01b0f1.tar.gz
gdb-290ad14a9dd688a94344e1c21e681e2e8d01b0f1.tar.bz2
Add determining when we do not have enough writeback slots; Do not do model specific handling if not printing out the information
Diffstat (limited to 'sim/ppc/mon.c')
-rw-r--r--sim/ppc/mon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/mon.c b/sim/ppc/mon.c
index 30bbbc4..3fe2f32 100644
--- a/sim/ppc/mon.c
+++ b/sim/ppc/mon.c
@@ -228,7 +228,7 @@ mon_print_info(psim *system,
len_cpu = strlen (buffer);
#ifdef HAVE_GETRUSAGE
- if (total_insns && verbose > 1)
+ if (total_insns && verbose)
{
struct rusage mytime;
if (getrusage (RUSAGE_SELF, &mytime) == 0
@@ -273,7 +273,7 @@ mon_print_info(psim *system,
printf_filtered ("\n");
}
- if (WITH_MODEL_ISSUE)
+ if (CURRENT_MODEL_ISSUE > 0)
{
model_data *model_ptr = cpu_model(psim_cpu(system, cpu_nr));
model_print *ptr = model_mon_info(model_ptr);
@@ -351,7 +351,7 @@ mon_print_info(psim *system,
if (cpu_insns_second)
printf_filtered ("%sSimulator speed was %s instructions/second\n",
- (monitor->nr_cpus <= 1 && verbose <= 1) ? "" : "\n",
+ (monitor->nr_cpus > 1) ? "" : "\n",
mon_add_commas(buffer, sizeof(buffer), cpu_insns_second));
}