]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/openrisc: Do not use target_ulong for @mr in MTSPR helper
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 8 Oct 2025 07:14:15 +0000 (09:14 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 15:07:27 +0000 (17:07 +0200)
OpenRISCTLBEntry::@mr field is a uint32_t type since its
introduction in commit 726fe045720 ("target-or32: Add MMU support").

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251010070702.51484-3-philmd@linaro.org>

target/openrisc/sys_helper.c

index b091a9c6685a4cf6355fbb5a6da60190c94fd044..ad59939db3b8022f29f4f8f841dc076b187a8e32 100644 (file)
@@ -45,7 +45,7 @@ void HELPER(mtspr)(CPUOpenRISCState *env, target_ulong spr, target_ulong rb)
     OpenRISCCPU *cpu = env_archcpu(env);
 #ifndef CONFIG_USER_ONLY
     CPUState *cs = env_cpu(env);
-    target_ulong mr;
+    uint32_t mr;
     int idx;
 #endif