]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/hppa: Use hppa_abs_to_phys_pa1x()
authorAnton Johansson <anjo@rev.ng>
Tue, 10 Feb 2026 11:33:14 +0000 (12:33 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 25 Feb 2026 22:46:04 +0000 (23:46 +0100)
Makes the physical address space conversion for 32 bit machines more
explicit, using the translation function defined in mem_helper.c.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Anton Johansson <anjo@rev.ng>
Message-ID: <20260218-phys_addr-v6-2-a603bf363218@rev.ng>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/hppa/machine.c

index 2cf4239a4305f661d230d358ef16a6a577fa2f98..f55e84529f60f0bcd0e57d1b583592b811c9ff78 100644 (file)
@@ -181,7 +181,7 @@ static uint64_t linux_kernel_virt_to_phys(void *opaque, uint64_t addr)
 
 static uint64_t translate_pa10(void *dummy, uint64_t addr)
 {
-    return (uint32_t)addr;
+    return hppa_abs_to_phys_pa1x(addr);
 }
 
 static uint64_t translate_pa20(void *dummy, uint64_t addr)