Message ID | 20220228222527.8234-5-mark.cave-ayland@ilande.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | q800: migration fixes | expand |
diff --git a/hw/display/macfb.c b/hw/display/macfb.c index fb54b460c1..f9ceea532e 100644 --- a/hw/display/macfb.c +++ b/hw/display/macfb.c @@ -617,9 +617,11 @@ static const VMStateDescription vmstate_macfb = { .minimum_version_id = 1, .post_load = macfb_post_load, .fields = (VMStateField[]) { + VMSTATE_UINT8(type, MacfbState), VMSTATE_UINT8_ARRAY(color_palette, MacfbState, 256 * 3), VMSTATE_UINT32(palette_current, MacfbState), VMSTATE_UINT32_ARRAY(regs, MacfbState, MACFB_NUM_REGS), + VMSTATE_TIMER_PTR(vbl_timer, MacfbState), VMSTATE_END_OF_LIST() } };
These fields are required in the migration stream to restore macfb state correctly. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> --- hw/display/macfb.c | 2 ++ 1 file changed, 2 insertions(+)