diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2000-09-09 21:00:39 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2000-09-09 21:00:39 +0000 |
commit | 2990a9f484ce9ff796d68d6fbfdad7e8a2ea61b8 (patch) | |
tree | 09dfb90559e80e00bd1648861408345259b1e1d4 /sim/m68hc11/m68hc11_sim.c | |
parent | c488923f169eed9ac1f7cb8e7d15e53eee97681d (diff) | |
download | gdb-2990a9f484ce9ff796d68d6fbfdad7e8a2ea61b8.zip gdb-2990a9f484ce9ff796d68d6fbfdad7e8a2ea61b8.tar.gz gdb-2990a9f484ce9ff796d68d6fbfdad7e8a2ea61b8.tar.bz2 |
* sim-main.h: Define cycle_to_string.
* dv-m68hc11tim.c (cycle_to_string): New function to translate
the cpu cycle into some formatted time string.
(m68hc11tim_print_timer): Use it.
* dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
* dv-m68hc11spi.c (m68hc11spi_info): Likewise.
* interrupts.c (interrupts_info): Likewise.
* m68hc11_sim.c (cpu_info): Likewise.
Diffstat (limited to 'sim/m68hc11/m68hc11_sim.c')
-rw-r--r-- | sim/m68hc11/m68hc11_sim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c index fbdf386..169edfa 100644 --- a/sim/m68hc11/m68hc11_sim.c +++ b/sim/m68hc11/m68hc11_sim.c @@ -627,8 +627,9 @@ void cpu_info (SIM_DESC sd, sim_cpu *cpu) { sim_io_printf (sd, "CPU info:\n"); - sim_io_printf (sd, " Absolute cycle: %llu\n", - cpu->cpu_absolute_cycle); + sim_io_printf (sd, " Absolute cycle: %s\n", + cycle_to_string (cpu, cpu->cpu_absolute_cycle)); + sim_io_printf (sd, " Syscall emulation: %s\n", cpu->cpu_emul_syscall ? "yes, via 0xcd <n>" : "no"); sim_io_printf (sd, " Memory errors detection: %s\n", |