]> git.proxmox.com Git - mirror_qemu.git/commit
memory: Access MemoryRegion with endianness
authorTony Nguyen <tony.nguyen@bt.com>
Fri, 23 Aug 2019 18:36:52 +0000 (04:36 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 3 Sep 2019 15:30:39 +0000 (08:30 -0700)
commitd5d680cacc66ef7e3c02c81dc8f3a34eabce6dfe
treef9738bf1ce601181a99be6c090f597fd6112b117
parent07f0834f264a79d6225202bd35ca37f74afb8df1
memory: Access MemoryRegion with endianness

Preparation for collapsing the two byte swaps adjust_endianness and
handle_bswap into the former.

Call memory_region_dispatch_{read|write} with endianness encoded into
the "MemOp op" operand.

This patch does not change any behaviour as
memory_region_dispatch_{read|write} is yet to handle the endianness.

Once it does handle endianness, callers with byte swaps can collapse
them into adjust_endianness.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Tony Nguyen <tony.nguyen@bt.com>
Message-Id: <8066ab3eb037c0388dfadfe53c5118429dd1de3a.1566466906.git.tony.nguyen@bt.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
exec.c
hw/intc/armv7m_nvic.c
hw/s390x/s390-pci-inst.c
hw/vfio/pci-quirks.c
hw/virtio/virtio-pci.c
include/exec/memory.h
memory.c
memory_ldst.inc.c