* [PATCH] linux-user/hppa: Fix struct target_sigcontext layout
@ 2023-09-30 21:27 Richard Henderson
2023-10-02 6:34 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2023-09-30 21:27 UTC (permalink / raw)
To: qemu-devel; +Cc: deller
Use abi_ullong not uint64_t so that the alignment of the field
and therefore the layout of the struct is correct.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
linux-user/hppa/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/hppa/signal.c b/linux-user/hppa/signal.c
index bda6e54655..ec5f5412d1 100644
--- a/linux-user/hppa/signal.c
+++ b/linux-user/hppa/signal.c
@@ -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;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] linux-user/hppa: Fix struct target_sigcontext layout
2023-09-30 21:27 [PATCH] linux-user/hppa: Fix struct target_sigcontext layout Richard Henderson
@ 2023-10-02 6:34 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-10-02 6:34 UTC (permalink / raw)
To: Richard Henderson, qemu-devel; +Cc: deller
On 30/9/23 23:27, Richard Henderson wrote:
> Use abi_ullong not uint64_t so that the alignment of the field
> and therefore the layout of the struct is correct.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> linux-user/hppa/signal.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-02 6:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-30 21:27 [PATCH] linux-user/hppa: Fix struct target_sigcontext layout Richard Henderson
2023-10-02 6:34 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).