diff mbox series

[PULL,15/47] include/exec/user: Set ABI_LLONG_ALIGNMENT to 4 for nios2

Message ID 20230715135317.7219-16-richard.henderson@linaro.org
State Accepted
Commit ea9812d93f9c3e1a308ac33097021c50d581d10e
Headers show
Series [PULL,01/47] linux-user: Reformat syscall_defs.h | expand

Commit Message

Richard Henderson July 15, 2023, 1:52 p.m. UTC
Based on gcc's nios2.h setting BIGGEST_ALIGNMENT to 32 bits.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 include/exec/user/abitypes.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Michael Tokarev Aug. 8, 2023, 7:19 a.m. UTC | #1
15.07.2023 16:52, Richard Henderson wrote:
> Based on gcc's nios2.h setting BIGGEST_ALIGNMENT to 32 bits.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   include/exec/user/abitypes.h | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/exec/user/abitypes.h b/include/exec/user/abitypes.h
> index beba0a48c7..6191ce9f74 100644
> --- a/include/exec/user/abitypes.h
> +++ b/include/exec/user/abitypes.h
> @@ -17,7 +17,8 @@
>   
>   #if (defined(TARGET_I386) && !defined(TARGET_X86_64)) \
>       || defined(TARGET_SH4) \
> -    || defined(TARGET_MICROBLAZE)
> +    || defined(TARGET_MICROBLAZE) \
> +    || defined(TARGET_NIOS2)
>   #define ABI_LLONG_ALIGNMENT 4
>   #endif

Hi!

It smells like we should pick a few of these changes for -stable too, no?

6ee960823d Fixed incorrect LLONG alignment for openrisc and cris
ea9812d93f include/exec/user: Set ABI_LLONG_ALIGNMENT to 4 for nios2
e73f27003e include/exec/user: Set ABI_LLONG_ALIGNMENT to 4 for microblaze

Thanks,

/mjt
diff mbox series

Patch

diff --git a/include/exec/user/abitypes.h b/include/exec/user/abitypes.h
index beba0a48c7..6191ce9f74 100644
--- a/include/exec/user/abitypes.h
+++ b/include/exec/user/abitypes.h
@@ -17,7 +17,8 @@ 
 
 #if (defined(TARGET_I386) && !defined(TARGET_X86_64)) \
     || defined(TARGET_SH4) \
-    || defined(TARGET_MICROBLAZE)
+    || defined(TARGET_MICROBLAZE) \
+    || defined(TARGET_NIOS2)
 #define ABI_LLONG_ALIGNMENT 4
 #endif