]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv/monitor: Replace legacy cpu_physical_memory_read() call
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 2 Oct 2025 03:09:23 +0000 (05:09 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 15:07:33 +0000 (17:07 +0200)
commitd936261844f68a07a3c51db08278eda273457d94
treefe7910466177fc0980ed80e2c78a00c6a9b76a5d
parentb4c93258a9d4e567d6e74d47cfcbbac0ff542bfa
target/riscv/monitor: Replace legacy cpu_physical_memory_read() call

Commit b7ecba0f6f6 ("docs/devel/loads-stores.rst: Document our
various load and store APIs") mentioned cpu_physical_memory_*()
methods are legacy, the replacement being address_space_*().

Propagate the address space to walk_pte(), then replace the
cpu_physical_memory_read() by address_space_read(). Since the
monitor command are run with a vCPU context, use its default
address space. As with the previous implementation, ignore
whether the memory read succeeded or failed.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Message-Id: <20251002145742.75624-5-philmd@linaro.org>
target/riscv/monitor.c