[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/10] macfb: increase number of registers saved in MacfbState
From: |
Mark Cave-Ayland |
Subject: |
[PATCH 03/10] macfb: increase number of registers saved in MacfbState |
Date: |
Mon, 28 Feb 2022 22:25:20 +0000 |
The MacOS toolbox ROM accesses a number of addresses between 0x0 and 0x200
during
initialisation and resolution changes. Whilst the function of many of these
registers is unknown, it is worth the minimal cost of saving these extra values
as
part of migration to help future-proof the migration stream for the q800 machine
as it starts to stabilise.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
include/hw/display/macfb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/display/macfb.h b/include/hw/display/macfb.h
index 6d9f0f7869..c0e2df8dc6 100644
--- a/include/hw/display/macfb.h
+++ b/include/hw/display/macfb.h
@@ -48,7 +48,7 @@ typedef struct MacFbMode {
uint32_t offset;
} MacFbMode;
-#define MACFB_NUM_REGS 8
+#define MACFB_NUM_REGS (0x200 / sizeof(uint32_t))
typedef struct MacfbState {
MemoryRegion mem_vram;
--
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 <=
- [PATCH 04/10] macfb: add VMStateDescription fields for display type and VBL timer, Mark Cave-Ayland, 2022/02/28
- [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