summaryrefslogtreecommitdiffstats
path: root/include/hw/display/macfb.h
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-03-05 16:55:23 +0100
committerMark Cave-Ayland2022-03-09 10:29:10 +0100
commitdd2a56ab6f4743d77f3586749eb6934983944f1f (patch)
treeab45e04ac4740e0a6081c605ea08f0f6842fb2d3 /include/hw/display/macfb.h
parentmacfb: don't use special irq_state and irq_mask variables in MacfbState (diff)
downloadqemu-dd2a56ab6f4743d77f3586749eb6934983944f1f.tar.gz
qemu-dd2a56ab6f4743d77f3586749eb6934983944f1f.tar.xz
qemu-dd2a56ab6f4743d77f3586749eb6934983944f1f.zip
macfb: increase number of registers saved in MacfbState
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. Note this is a migration break, but since there are upcoming incompatible changes for the q800 machine (and migration does not even succeed without these patches) then this is not an issue. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220305155530.9265-4-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw/display/macfb.h')
-rw-r--r--include/hw/display/macfb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/display/macfb.h b/include/hw/display/macfb.h
index 6d9f0f7869..55a50d3fb0 100644
--- a/include/hw/display/macfb.h
+++ b/include/hw/display/macfb.h
@@ -48,7 +48,8 @@ typedef struct MacFbMode {
uint32_t offset;
} MacFbMode;
-#define MACFB_NUM_REGS 8
+#define MACFB_CTRL_TOPADDR 0x200
+#define MACFB_NUM_REGS (MACFB_CTRL_TOPADDR / sizeof(uint32_t))
typedef struct MacfbState {
MemoryRegion mem_vram;