]> git.proxmox.com Git - mirror_qemu.git/commit
next-cube.c: move static old_scr2 variable to NeXTPC
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 20 Dec 2023 13:16:38 +0000 (13:16 +0000)
committerThomas Huth <huth@tuxfamily.org>
Fri, 22 Dec 2023 13:08:26 +0000 (14:08 +0100)
commit22cf5ee30f017351272d5931b9287b69f39f01f2
tree94ca3e882b2837c889d36720d2485fff6092df1b
parent88d0c5b0df9ea7d1b6ff1381e8245c634fe6a2ad
next-cube.c: move static old_scr2 variable to NeXTPC

Move the old_scr2 variable to NeXTPC so that the old SCR2 register state is
stored along with the current SCR2 state.

Since the SCR2 register is 32-bits wide, convert old_scr2 to uint32_t and
update the SCR2 register access code to allow unaligned writes.

Note that this is a migration break, but as nothing will currently boot then
we do not need to worry about this now.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Message-ID: <20231220131641.592826-9-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
hw/m68k/next-cube.c