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-m68hc11spi.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-m68hc11spi.c')
-rw-r--r-- | sim/m68hc11/dv-m68hc11spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c index 5f5e0bb..619a2d3 100644 --- a/sim/m68hc11/dv-m68hc11spi.c +++ b/sim/m68hc11/dv-m68hc11spi.c @@ -1,6 +1,6 @@ /* dv-m68hc11spi.c -- Simulation of the 68HC11 SPI - Copyright (C) 2000, 2002 Free Software Foundation, Inc. - Written by Stephane Carrez (stcarrez@worldnet.fr) + Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc. + Written by Stephane Carrez (stcarrez@nerim.fr) (From a driver model Contributed by Cygnus Solutions.) This file is part of the program GDB, the GNU debugger. @@ -358,11 +358,11 @@ m68hc11spi_info (struct hw *me) controller->tx_bit + 1); t = hw_event_remain_time (me, controller->spi_event); sim_io_printf (sd, " SPI current bit-cycle finished in %s\n", - cycle_to_string (cpu, t)); + cycle_to_string (cpu, t, PRINT_TIME | PRINT_CYCLE)); t += (controller->tx_bit + 1) * 2 * controller->clock; sim_io_printf (sd, " SPI operation finished in %s\n", - cycle_to_string (cpu, t)); + cycle_to_string (cpu, t, PRINT_TIME | PRINT_CYCLE)); } } |