qemu-e2k/hw/pci-host
Peter Maydell f94d58f260 hw/pci-host/raven.c: Mark raven_io_ops as implementing unaligned accesses
The raven_io_ops MemoryRegionOps is the only one in the source tree
which sets .valid.unaligned to indicate that it should support
unaligned accesses and which does not also set .impl.unaligned to
indicate that its read and write functions can do the unaligned
handling themselves.  This is a problem, because at the moment the
core memory system does not implement the support for handling
unaligned accesses by doing a series of aligned accesses and
combining them (system/memory.c:access_with_adjusted_size() has a
TODO comment noting this).

Fortunately raven_io_read() and raven_io_write() will correctly deal
with the case of being passed an unaligned address, so we can fix the
missing unaligned access support by setting .impl.unaligned in the
MemoryRegionOps struct.

Fixes: 9a1839164c ("raven: Implement non-contiguous I/O region")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Message-id: 20240112134640.1775041-1-peter.maydell@linaro.org
2024-02-15 11:30:45 +00:00
..
articia.c
astro.c
bonito.c
designware.c
dino.c
gpex-acpi.c
gpex.c
grackle.c
gt64120.c
i440fx.c
Kconfig
meson.build
mv643xx.h
mv64361.c
pam.c
pnv_phb3_msi.c
pnv_phb3_pbcq.c
pnv_phb3.c
pnv_phb4_pec.c
pnv_phb4.c
pnv_phb.c
pnv_phb.h
ppce500.c
q35.c
raven.c hw/pci-host/raven.c: Mark raven_io_ops as implementing unaligned accesses 2024-02-15 11:30:45 +00:00
remote.c
sabre.c
sh_pci.c
trace-events
trace.h
uninorth.c
versatile.c
xen_igd_pt.c
xilinx-pcie.c