Revision 22548760 hw/slavio_serial.c
b/hw/slavio_serial.c | ||
---|---|---|
92 | 92 |
#define SERIAL_REGS 16 |
93 | 93 |
typedef struct ChannelState { |
94 | 94 |
qemu_irq irq; |
95 |
int reg;
|
|
96 |
int rxint, txint, rxint_under_svc, txint_under_svc;
|
|
95 |
uint32_t reg;
|
|
96 |
uint32_t rxint, txint, rxint_under_svc, txint_under_svc;
|
|
97 | 97 |
chn_id_t chn; // this channel, A (base+4) or B (base+0) |
98 | 98 |
chn_type_t type; |
99 | 99 |
struct ChannelState *otherchn; |
... | ... | |
656 | 656 |
|
657 | 657 |
static void slavio_serial_save_chn(QEMUFile *f, ChannelState *s) |
658 | 658 |
{ |
659 |
int tmp;
|
|
660 |
tmp = 0; |
|
659 |
uint32_t tmp = 0;
|
|
660 |
|
|
661 | 661 |
qemu_put_be32s(f, &tmp); /* unused, was IRQ. */ |
662 | 662 |
qemu_put_be32s(f, &s->reg); |
663 | 663 |
qemu_put_be32s(f, &s->rxint); |
... | ... | |
680 | 680 |
|
681 | 681 |
static int slavio_serial_load_chn(QEMUFile *f, ChannelState *s, int version_id) |
682 | 682 |
{ |
683 |
int tmp;
|
|
683 |
uint32_t tmp;
|
|
684 | 684 |
|
685 | 685 |
if (version_id > 2) |
686 | 686 |
return -EINVAL; |
Also available in: Unified diff