The cpu_physical_memory API is legacy (see commit b7ecba0f6f6): ``cpu_physical_memory_*`` ~~~~~~~~~~~~~~~~~~~~~~~~~
These are convenience functions which are identical to ``address_space_*`` but operate specifically on the system address space, always pass a ``MEMTXATTRS_UNSPECIFIED`` set of memory attributes and ignore whether the memory transaction succeeded or failed. For new code they are better avoided: ... After converting the target/s390x [*], this series convert the remaining targets. Based-on: <[email protected]> [*] https://lore.kernel.org/qemu-devel/[email protected]/ Philippe Mathieu-Daudé (6): target/i386/monitor: Propagate CPU address space to 'info mem' handlers target/i386/monitor: Replace legacy cpu_physical_memory_read() calls target/riscv/kvm: Replace legacy cpu_physical_memory_read/write() calls target/riscv/monitor: Replace legacy cpu_physical_memory_read() call target/xtensa: Replace legacy cpu_physical_memory_[un]map() calls target/sparc: Reduce inclusions of 'exec/cpu-common.h' target/sparc/cpu.h | 1 - target/i386/monitor.c | 134 +++++++++++++++++------------------- target/riscv/kvm/kvm-cpu.c | 6 +- target/riscv/monitor.c | 12 ++-- target/sparc/helper.c | 1 + target/sparc/int64_helper.c | 1 + target/xtensa/xtensa-semi.c | 11 +-- 7 files changed, 86 insertions(+), 80 deletions(-) -- 2.51.0
