From: Philippe Mathieu-Daudé Date: Wed, 8 Oct 2025 07:14:15 +0000 (+0200) Subject: target/openrisc: Do not use target_ulong for @mr in MTSPR helper X-Git-Tag: v10.2.0-rc1~61^2~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3c4facd395b9d39996ed60d42b1f448d3f727cc;p=thirdparty%2Fqemu.git target/openrisc: Do not use target_ulong for @mr in MTSPR helper 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é Reviewed-by: Anton Johansson Reviewed-by: Richard Henderson Message-Id: <20251010070702.51484-3-philmd@linaro.org> --- diff --git a/target/openrisc/sys_helper.c b/target/openrisc/sys_helper.c index b091a9c668..ad59939db3 100644 --- a/target/openrisc/sys_helper.c +++ b/target/openrisc/sys_helper.c @@ -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