linux-user/hppa: Fix struct target_sigcontext layout
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 30 Sep 2023 20:45:54 +0000 (13:45 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Oct 2023 18:03:54 +0000 (11:03 -0700)
Use abi_ullong not uint64_t so that the alignment of the field
and therefore the layout of the struct is correct.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/hppa/signal.c

index bda6e54655a608eaffe94b3b47070cdaa82c49c1..ec5f5412d10a10c3c52c0e6537745b56ff401ab3 100644 (file)
@@ -25,7 +25,7 @@
 struct target_sigcontext {
     abi_ulong sc_flags;
     abi_ulong sc_gr[32];
-    uint64_t sc_fr[32];
+    abi_ullong sc_fr[32];
     abi_ulong sc_iasq[2];
     abi_ulong sc_iaoq[2];
     abi_ulong sc_sar;