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/sim-main.h | |
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/sim-main.h')
-rw-r--r-- | sim/m68hc11/sim-main.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/m68hc11/sim-main.h b/sim/m68hc11/sim-main.h index 054933b..a4bd3a6 100644 --- a/sim/m68hc11/sim-main.h +++ b/sim/m68hc11/sim-main.h @@ -200,6 +200,7 @@ struct _sim_cpu { /* The mode in which the CPU is configured (MODA and MODB pins). */ unsigned int cpu_mode; + const char* cpu_start_mode; /* The cpu being configured. */ enum cpu_type cpu_type; @@ -591,7 +592,9 @@ extern void sim_set_profile (int n); extern void sim_set_profile_size (int n); extern void sim_board_reset (SIM_DESC sd); -extern const char *cycle_to_string (sim_cpu *cpu, signed64 t); +#define PRINT_TIME 0x01 +#define PRINT_CYCLE 0x02 +extern const char *cycle_to_string (sim_cpu *cpu, signed64 t, int flags); #endif |