aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/dv-m68hc11sio.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2000-09-09 21:00:39 +0000
committerStephane Carrez <stcarrez@nerim.fr>2000-09-09 21:00:39 +0000
commit2990a9f484ce9ff796d68d6fbfdad7e8a2ea61b8 (patch)
tree09dfb90559e80e00bd1648861408345259b1e1d4 /sim/m68hc11/dv-m68hc11sio.c
parentc488923f169eed9ac1f7cb8e7d15e53eee97681d (diff)
downloadgdb-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/dv-m68hc11sio.c')
-rw-r--r--sim/m68hc11/dv-m68hc11sio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/m68hc11/dv-m68hc11sio.c b/sim/m68hc11/dv-m68hc11sio.c
index 3e6d4eb..aa765cf 100644
--- a/sim/m68hc11/dv-m68hc11sio.c
+++ b/sim/m68hc11/dv-m68hc11sio.c
@@ -465,16 +465,16 @@ m68hc11sio_info (struct hw *me)
t = hw_event_remain_time (me, controller->tx_poll_event);
n = (clock_cycle - t) / controller->baud_cycle;
n = controller->data_length - n;
- sim_io_printf (sd, " Transmit finished in %ld cycles (%d bit%s)\n",
- (long) t, n, (n > 1 ? "s" : ""));
+ sim_io_printf (sd, " Transmit finished in %s (%d bit%s)\n",
+ cycle_to_string (cpu, t), n, (n > 1 ? "s" : ""));
}
if (controller->rx_poll_event)
{
signed64 t;
t = hw_event_remain_time (me, controller->rx_poll_event);
- sim_io_printf (sd, " Receive finished in %ld cycles\n",
- (long) t);
+ sim_io_printf (sd, " Receive finished in %s\n",
+ cycle_to_string (cpu, t));
}
}