diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-03-07 19:17:04 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-03-07 19:17:04 +0000 |
commit | 86596dc8e0f8e5832ea8abff4ee6ae0c0d734238 (patch) | |
tree | da4535d137b0a5949a359b3ae89baeb3d7068fa5 /sim/m68hc11/m68hc11_sim.c | |
parent | 827ec39a5a8af8821006d93978623dc1ababdac1 (diff) | |
download | gdb-86596dc8e0f8e5832ea8abff4ee6ae0c0d734238.zip gdb-86596dc8e0f8e5832ea8abff4ee6ae0c0d734238.tar.gz gdb-86596dc8e0f8e5832ea8abff4ee6ae0c0d734238.tar.bz2 |
* m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
(cpu_move16): Likewise.
(sim_memory_error): Use sim_io_printf.
(cpu_option_handler): Fix compilation warning.
* interp.c (sim_hw_configure): Fix compilation warning;
remove m68hc12sio@2 device.
(sim_open): Likewise.
* dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
flags when reset.
(cycle_to_string): Improve convertion of cpu cycle number.
(m68hc11tim_info): Print info about PACNT.
(m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
TCTL1 and TCTL2 registers.
* dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
Diffstat (limited to 'sim/m68hc11/m68hc11_sim.c')
-rw-r--r-- | sim/m68hc11/m68hc11_sim.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c index 7cf5e08..d9fb807 100644 --- a/sim/m68hc11/m68hc11_sim.c +++ b/sim/m68hc11/m68hc11_sim.c @@ -54,7 +54,6 @@ static SIM_RC cpu_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt, char *arg, int is_command) { - sim_cpu *cpu; int val; cpu = STATE_CPU (sd, 0); @@ -393,7 +392,11 @@ cpu_move8 (sim_cpu *cpu, uint8 code) src = cpu_get_indexed_operand8 (cpu, 1); addr = cpu_get_indexed_operand_addr (cpu, 1); break; - + + default: + sim_engine_abort (CPU_STATE (cpu), cpu, 0, + "Invalid code 0x%0x -- internal error?", code); + return; } memory_write8 (cpu, addr, src); } @@ -436,7 +439,11 @@ cpu_move16 (sim_cpu *cpu, uint8 code) src = cpu_get_indexed_operand16 (cpu, 1); addr = cpu_get_indexed_operand_addr (cpu, 1); break; - + + default: + sim_engine_abort (CPU_STATE (cpu), cpu, 0, + "Invalid code 0x%0x -- internal error?", code); + return; } memory_write16 (cpu, addr, src); } @@ -941,7 +948,7 @@ sim_memory_error (sim_cpu *cpu, SIM_SIGNAL excep, vsprintf (buf, message, args); va_end (args); - printf("%s\n", buf); + sim_io_printf (CPU_STATE (cpu), "%s\n", buf); cpu_memory_exception (cpu, excep, addr, buf); } |