2000-08-15 Dave Brolley <brolley@redhat.com>

* sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
This commit is contained in:
Dave Brolley 2000-08-15 18:49:50 +00:00
parent 090321281b
commit 80dbae7a49
1 changed files with 2 additions and 2 deletions

View File

@ -1017,7 +1017,6 @@ profile_print_speed (sim_cpu *cpu)
COMMAS ((unsigned long) ((double) total / secs))); COMMAS ((unsigned long) ((double) total / secs)));
} }
#if WITH_PROFILE_MODEL_P
/* Print simulated execution time if the cpu frequency has been specified. */ /* Print simulated execution time if the cpu frequency has been specified. */
clock = PROFILE_CPU_FREQ (data); clock = PROFILE_CPU_FREQ (data);
if (clock != 0) if (clock != 0)
@ -1028,6 +1027,7 @@ profile_print_speed (sim_cpu *cpu)
else else
sim_io_printf (sd, " Simulated cpu frequency: %.2f Hz\n", clock); sim_io_printf (sd, " Simulated cpu frequency: %.2f Hz\n", clock);
#if WITH_PROFILE_MODEL_P
if (PROFILE_FLAGS (data) [PROFILE_MODEL_IDX]) if (PROFILE_FLAGS (data) [PROFILE_MODEL_IDX])
{ {
/* The printing of the time rounded to 2 decimal places makes the /* The printing of the time rounded to 2 decimal places makes the
@ -1040,8 +1040,8 @@ profile_print_speed (sim_cpu *cpu)
sim_io_printf (sd, " Simulated execution time: %.2f seconds\n", sim_io_printf (sd, " Simulated execution time: %.2f seconds\n",
secs); secs);
} }
}
#endif /* WITH_PROFILE_MODEL_P */ #endif /* WITH_PROFILE_MODEL_P */
}
} }
/* Print selected address ranges. */ /* Print selected address ranges. */