]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/microblaze: Remove target_ulong uses in get_phys_page_attrs_debug
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 8 Oct 2025 04:36:32 +0000 (06:36 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 15:07:27 +0000 (17:07 +0200)
The CPUClass::get_phys_page_debug() handler takes a 'vaddr' address
and return a 'hwaddr' type since commit 00b941e581b ("cpu: Turn
cpu_get_phys_page_debug() into a CPUClass hook").

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251015180115.97493-3-philmd@linaro.org>

target/microblaze/helper.c

index ef0e2f973fa7992bae738dad4a6f9d7cad8f65ed..cf577a722689e6945cad56e42b9d3add56c5cb46 100644 (file)
@@ -274,7 +274,8 @@ hwaddr mb_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
                                         MemTxAttrs *attrs)
 {
     MicroBlazeCPU *cpu = MICROBLAZE_CPU(cs);
-    target_ulong vaddr, paddr = 0;
+    vaddr vaddr;
+    hwaddr paddr = 0;
     MicroBlazeMMULookup lu;
     int mmu_idx = cpu_mmu_index(cs, false);
     unsigned int hit;