[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/10] macfb: add VMStateDescription fields for display type and
From: |
Mark Cave-Ayland |
Subject: |
[PATCH 04/10] macfb: add VMStateDescription fields for display type and VBL timer |
Date: |
Mon, 28 Feb 2022 22:25:21 +0000 |
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(+)
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()
}
};
--
2.20.1
- [PATCH 00/10] q800: migration fixes, Mark Cave-Ayland, 2022/02/28
- [PATCH 02/10] macfb: don't use special irq_state and irq_mask variables in MacfbState, Mark Cave-Ayland, 2022/02/28
- [PATCH 01/10] macfb: add VMStateDescription for MacfbNubusState and MacfbSysBusState, Mark Cave-Ayland, 2022/02/28
- [PATCH 03/10] macfb: increase number of registers saved in MacfbState, Mark Cave-Ayland, 2022/02/28
- [PATCH 04/10] macfb: add VMStateDescription fields for display type and VBL timer,
Mark Cave-Ayland <=
- [PATCH 05/10] macfb: set initial value of mode control registers in macfb_common_realize(), Mark Cave-Ayland, 2022/02/28
- [PATCH 06/10] esp: introduce esp_set_pdma_cb() function, Mark Cave-Ayland, 2022/02/28
- [PATCH 07/10] esp: introduce esp_pdma_cb() function, Mark Cave-Ayland, 2022/02/28
- [PATCH 09/10] esp: include the current PDMA callback in the migration stream, Mark Cave-Ayland, 2022/02/28
- [PATCH 08/10] esp: convert ESPState pdma_cb from a function pointer to an integer, Mark Cave-Ayland, 2022/02/28
- [PATCH 10/10] esp: recreate ESPState current_req after migration, Mark Cave-Ayland, 2022/02/28