mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* 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.
This commit is contained in:
@ -171,7 +171,6 @@ sim_hw_configure (SIM_DESC sd)
|
||||
{
|
||||
const struct bfd_arch_info *arch;
|
||||
struct hw *device_tree;
|
||||
int m6811_mode;
|
||||
sim_cpu *cpu;
|
||||
|
||||
arch = STATE_ARCHITECTURE (sd);
|
||||
@ -252,12 +251,6 @@ sim_hw_configure (SIM_DESC sd)
|
||||
sim_hw_parse (sd, "/m68hc12/m68hc12sio@1/backend stdio");
|
||||
sim_hw_parse (sd, "/m68hc12 > cpu-reset reset /m68hc12/m68hc12sio@1");
|
||||
}
|
||||
if (!hw_tree_find_property (device_tree, "/m68hc12/m68hc12sio@2/reg"))
|
||||
{
|
||||
sim_hw_parse (sd, "/m68hc12/m68hc12sio@2/reg 0xC8 0x8");
|
||||
sim_hw_parse (sd, "/m68hc12/m68hc12sio@2/backend tcp");
|
||||
sim_hw_parse (sd, "/m68hc12 > cpu-reset reset /m68hc12/m68hc12sio@2");
|
||||
}
|
||||
if (hw_tree_find_property (device_tree, "/m68hc12/m68hc12tim/reg") == 0)
|
||||
{
|
||||
/* M68hc11 Timer configuration. */
|
||||
@ -312,10 +305,8 @@ SIM_DESC
|
||||
sim_open (SIM_OPEN_KIND kind, host_callback *callback,
|
||||
struct _bfd *abfd, char **argv)
|
||||
{
|
||||
char **p;
|
||||
SIM_DESC sd;
|
||||
sim_cpu *cpu;
|
||||
struct hw *device_tree;
|
||||
|
||||
sd = sim_state_alloc (kind, callback);
|
||||
cpu = STATE_CPU (sd, 0);
|
||||
|
Reference in New Issue
Block a user