diff options
author | Dave Brolley <brolley@redhat.com> | 2000-08-15 18:49:50 +0000 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2000-08-15 18:49:50 +0000 |
commit | 80dbae7a49c0b633be93dabe7908312db3e61060 (patch) | |
tree | 361245d936823835fecc92b0b7dce2a2e62ad358 /sim | |
parent | 090321281be9a379e61e6828a2372d544ff17bd0 (diff) | |
download | gdb-80dbae7a49c0b633be93dabe7908312db3e61060.zip gdb-80dbae7a49c0b633be93dabe7908312db3e61060.tar.gz gdb-80dbae7a49c0b633be93dabe7908312db3e61060.tar.bz2 |
2000-08-15 Dave Brolley <brolley@redhat.com>
* sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/sim-profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index 13805e9..ff53f71 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -1017,7 +1017,6 @@ profile_print_speed (sim_cpu *cpu) COMMAS ((unsigned long) ((double) total / secs))); } -#if WITH_PROFILE_MODEL_P /* Print simulated execution time if the cpu frequency has been specified. */ clock = PROFILE_CPU_FREQ (data); if (clock != 0) @@ -1028,6 +1027,7 @@ profile_print_speed (sim_cpu *cpu) else sim_io_printf (sd, " Simulated cpu frequency: %.2f Hz\n", clock); +#if WITH_PROFILE_MODEL_P if (PROFILE_FLAGS (data) [PROFILE_MODEL_IDX]) { /* 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", secs); } - } #endif /* WITH_PROFILE_MODEL_P */ + } } /* Print selected address ranges. */ |