static const VMStateDescription vmstate_ps2_common = {
.name = "PS2 Common State",
- .version_id = 3,
+ .version_id = 4,
.minimum_version_id = 2,
.minimum_version_id_old = 2,
.fields = (VMStateField []) {
@@ -577,6 +585,7 @@ static const VMStateDescription vmstate_ps2_keyboard = {
VMSTATE_INT32(scan_enabled, PS2KbdState),
VMSTATE_INT32(translate, PS2KbdState),
VMSTATE_INT32_V(scancode_set, PS2KbdState,3),
+ VMSTATE_INT32_V(ledstate, PS2KbdState, 4),
VMSTATE_END_OF_LIST()
}
version_id in vmstate_ps2_keyboard must be updated too.
The version update in vmstate_ps2_common might not be needed, IIRC the
versions for stuff referenced via VMSTATE_STRUCT() isn't used anyway, Juan?
cheers,
Gerd