diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2003-08-08 21:02:24 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2003-08-08 21:02:24 +0000 |
commit | a685700c57ecf2f851094e8861e8b71a6b153058 (patch) | |
tree | 1cc52fc2e37ba0f7a8f81aa892b8315afd44fdf6 /sim/m68hc11/dv-m68hc11sio.c | |
parent | 77342e5ecc0d04f03bd7d8e48f2a1ce3a7ddbdd8 (diff) | |
download | gdb-a685700c57ecf2f851094e8861e8b71a6b153058.zip gdb-a685700c57ecf2f851094e8861e8b71a6b153058.tar.gz gdb-a685700c57ecf2f851094e8861e8b71a6b153058.tar.bz2 |
* dv-m68hc11tim.c (cycle_to_string): Add flags parameter to better
control the translation.
(m68hc11tim_print_timer): Update cycle_to_string conversion.
(m68hc11tim_timer_event): Fix handling of output
compare register with its interrupts.
(m68hc11tim_io_write_buffer): Check output compare
after setting M6811_TMSK1.
(m68hc11tim_io_read_buffer): Fix compilation warning.
* dv-m68hc11.c (m68hc11_option_handler): Likewise.
* dv-m68hc11spi.c (m68hc11spi_info): Likewise.
* dv-m68hc11sio.c (m68hc11sio_info): Likewise.
* interrupts.c (interrupts_info): Likewise.
(interrupts_reset): Recognize bootstrap mode.
* sim-main.h (PRINT_CYCLE, PRINT_TIME): New defines.
(_sim_cpu): Add cpu_start_mode.
(cycle_to_string): Add flags member.
* m68hc11_sim.c (OPTION_CPU_BOOTSTRAP): New option.
(cpu_options): Declare new option bootstrap.
(cpu_option_handler): Handle it.
(cpu_info): Update call to cycle_to_string.
Diffstat (limited to 'sim/m68hc11/dv-m68hc11sio.c')
-rw-r--r-- | sim/m68hc11/dv-m68hc11sio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/m68hc11/dv-m68hc11sio.c b/sim/m68hc11/dv-m68hc11sio.c index ec7a46d..655a6db 100644 --- a/sim/m68hc11/dv-m68hc11sio.c +++ b/sim/m68hc11/dv-m68hc11sio.c @@ -463,7 +463,8 @@ m68hc11sio_info (struct hw *me) n = (clock_cycle - t) / controller->baud_cycle; n = controller->data_length - n; sim_io_printf (sd, " Transmit finished in %s (%d bit%s)\n", - cycle_to_string (cpu, t), n, (n > 1 ? "s" : "")); + cycle_to_string (cpu, t, PRINT_TIME | PRINT_CYCLE), + n, (n > 1 ? "s" : "")); } if (controller->rx_poll_event) { @@ -471,7 +472,7 @@ m68hc11sio_info (struct hw *me) t = hw_event_remain_time (me, controller->rx_poll_event); sim_io_printf (sd, " Receive finished in %s\n", - cycle_to_string (cpu, t)); + cycle_to_string (cpu, t, PRINT_TIME | PRINT_CYCLE)); } } |