diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-08 14:12:31 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-08 14:12:31 +0000 |
commit | 7783e9f0029819101e206d7baf6db445e6e4692f (patch) | |
tree | 174415d096ce20ce0baed45df5bb47c19fdefd82 /hw/pckbd.c | |
parent | 33698e5ffce099286b7788a63142f603b4cd7f38 (diff) | |
download | qemu-7783e9f0029819101e206d7baf6db445e6e4692f.zip qemu-7783e9f0029819101e206d7baf6db445e6e4692f.tar.gz qemu-7783e9f0029819101e206d7baf6db445e6e4692f.tar.bz2 |
Keyboard savevm fix (malc).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1797 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pckbd.c')
-rw-r--r-- | hw/pckbd.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -118,7 +118,7 @@ typedef struct KBDState { uint8_t status; uint8_t mode; /* Bitmask of devices with data available. */ - int pending; + uint8_t pending; void *kbd; void *mouse; } KBDState; @@ -337,17 +337,19 @@ static void kbd_save(QEMUFile* f, void* opaque) qemu_put_8s(f, &s->write_cmd); qemu_put_8s(f, &s->status); qemu_put_8s(f, &s->mode); + qemu_put_8s(f, &s->pending); } static int kbd_load(QEMUFile* f, void* opaque, int version_id) { KBDState *s = (KBDState*)opaque; - if (version_id != 2) + if (version_id != 3) return -EINVAL; qemu_get_8s(f, &s->write_cmd); qemu_get_8s(f, &s->status); qemu_get_8s(f, &s->mode); + qemu_get_8s(f, &s->pending); return 0; } @@ -356,7 +358,7 @@ void kbd_init(void) KBDState *s = &kbd_state; kbd_reset(s); - register_savevm("pckbd", 0, 2, kbd_save, kbd_load, s); + register_savevm("pckbd", 0, 3, kbd_save, kbd_load, s); register_ioport_read(0x60, 1, 1, kbd_read_data, s); register_ioport_write(0x60, 1, 1, kbd_write_data, s); register_ioport_read(0x64, 1, 1, kbd_read_status, s); |