aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2018-06-07 18:17:48 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-06-12 10:44:36 +1000
commit72ee08cf4f2d4443d198b4e9f7a6fa2beb06dd6b (patch)
tree5a27a1a722554ef4ae2df66940c12c4491efe3ed
parent5b64db9754bde0b8e0329ce77d3647a0a2f6da56 (diff)
downloadqemu-72ee08cf4f2d4443d198b4e9f7a6fa2beb06dd6b.zip
qemu-72ee08cf4f2d4443d198b4e9f7a6fa2beb06dd6b.tar.gz
qemu-72ee08cf4f2d4443d198b4e9f7a6fa2beb06dd6b.tar.bz2
mos6522: fix vmstate_mos6522_timer version in vmstate_mos6522
This was accidentally introduced when extracting the 6522 VIA functionality from the CUDA device, and prevents loadvm from completing successfully. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--hw/misc/mos6522.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/mos6522.c b/hw/misc/mos6522.c
index 49166cb..bcb306d 100644
--- a/hw/misc/mos6522.c
+++ b/hw/misc/mos6522.c
@@ -405,7 +405,7 @@ static const VMStateDescription vmstate_mos6522 = {
VMSTATE_UINT8(ifr, MOS6522State),
VMSTATE_UINT8(ier, MOS6522State),
VMSTATE_UINT8(anh, MOS6522State),
- VMSTATE_STRUCT_ARRAY(timers, MOS6522State, 2, 1,
+ VMSTATE_STRUCT_ARRAY(timers, MOS6522State, 2, 0,
vmstate_mos6522_timer, MOS6522Timer),
VMSTATE_END_OF_LIST()
}