]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/sparc: Replace abi_ulong by uint32_t for TARGET_ABI32
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 18 Apr 2024 12:17:47 +0000 (13:17 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 26 Apr 2024 13:31:37 +0000 (15:31 +0200)
We have abi_ulong == uint32_t for the 32-bit ABI.
Use the generic type to avoid to depend on the
"exec/user/abitypes.h" header.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240418192525.97451-14-philmd@linaro.org>

target/sparc/gdbstub.c

index 07ea81ab5f11bad309f24dff1306c48f321ba391..ec0036e9ef640a8ac286b7d207262af2869101b2 100644 (file)
@@ -108,7 +108,7 @@ int sparc_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
     SPARCCPU *cpu = SPARC_CPU(cs);
     CPUSPARCState *env = &cpu->env;
 #if defined(TARGET_ABI32)
-    abi_ulong tmp;
+    uint32_t tmp;
 
     tmp = ldl_p(mem_buf);
 #else