]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/alpha: Do not use target_ulong for trap arguments
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 2 Feb 2026 23:08:35 +0000 (00:08 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 3 Feb 2026 13:57:34 +0000 (14:57 +0100)
%mmcsr and %cause are filled with @trap_arg1 / @trap_arg2,
both declared as uint64_t in target/alpha/cpu.h:

    229     uint64_t trap_arg1;
    230     uint64_t trap_arg2;
    ...

Use uint64_t instead of target_ulong.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260202234550.34156-5-philmd@linaro.org>

target/alpha/helper.c

index 126a53c829bedeb74fea2011498327ad93dedf7d..2dc52cc44651b5bca8904f3b56eea6ee15b06a6e 100644 (file)
@@ -129,7 +129,7 @@ void alpha_cpu_record_sigsegv(CPUState *cs, vaddr address,
                               bool maperr, uintptr_t retaddr)
 {
     CPUAlphaState *env = cpu_env(cs);
-    target_ulong mmcsr, cause;
+    uint64_t mmcsr, cause;
 
     /* Assuming !maperr, infer the missing protection. */
     switch (access_type) {