]> git.proxmox.com Git - mirror_qemu.git/commit
next-cube.c: update scr_ops to properly use modern memory API
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 20 Dec 2023 13:16:34 +0000 (13:16 +0000)
committerThomas Huth <huth@tuxfamily.org>
Fri, 22 Dec 2023 13:08:26 +0000 (14:08 +0100)
commit0d60da39981c5907b8d822c6889ea948c76a4d30
tree716df7b106902d47f2f90813747d39cd0752919d
parent7e993d934a2267940b16f5ebe328478a5273dcdf
next-cube.c: update scr_ops to properly use modern memory API

The old QEMU memory accessors used in the original NextCube patch series had
separate functions for 1, 2 and 4 byte accessors. When the series was finally
merged a simple wrapper function was written to dispatch the memory accesses
using the original functions.

Convert scr_ops to use the memory API directly renaming it to next_scr_ops,
marking it as DEVICE_BIG_ENDIAN, and handling any unaligned accesses.

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