mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
sim: m68hc11: tweak types to fix warnings
The hw attach API wants unsigned addresses. The write API wants signed chars.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2021-05-04 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* dv-m68hc11.c (struct m68hc11cpu): Change attach_size to unsigned int.
|
||||||
|
* dv-m68hc11sio.c (m68hc11sio_tx_poll): Cast buffer to const char*.
|
||||||
|
|
||||||
2021-05-04 Mike Frysinger <vapier@gentoo.org>
|
2021-05-04 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
@ -142,7 +142,7 @@ struct m68hc11cpu {
|
|||||||
int pending_level;
|
int pending_level;
|
||||||
struct hw_event *event;
|
struct hw_event *event;
|
||||||
unsigned_word attach_address;
|
unsigned_word attach_address;
|
||||||
int attach_size;
|
unsigned int attach_size;
|
||||||
int attach_space;
|
int attach_space;
|
||||||
int last_oscillator;
|
int last_oscillator;
|
||||||
struct input_osc oscillators[NR_OSC];
|
struct input_osc oscillators[NR_OSC];
|
||||||
|
@ -340,7 +340,7 @@ m68hc11sio_tx_poll (struct hw *me, void *data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case sio_stdio:
|
case sio_stdio:
|
||||||
sim_io_write_stdout (sd, &controller->tx_char, 1);
|
sim_io_write_stdout (sd, (const char *)&controller->tx_char, 1);
|
||||||
sim_io_flush_stdout (sd);
|
sim_io_flush_stdout (sd);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user