diff mbox series

[1/7] linux-user: Fix TARGET_PROT_SEM for XTENSA

Message ID 20220924114501.21767-2-deller@gmx.de (mailing list archive)
State New, archived
Headers show
Series linux-user fixes for hppa target - part 2 | expand

Commit Message

Helge Deller Sept. 24, 2022, 11:44 a.m. UTC
The xtensa platform has a value of 0x10 for PROT_SEM.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 linux-user/syscall_defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.37.3

Comments

Laurent Vivier Sept. 25, 2022, 3:49 p.m. UTC | #1
Le 24/09/2022 à 13:44, Helge Deller a écrit :
> The xtensa platform has a value of 0x10 for PROT_SEM.
> 
> Signed-off-by: Helge Deller <deller@gmx.de>
> ---
>   linux-user/syscall_defs.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index 85b0f33e91..1e3577bfa5 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -1246,7 +1246,7 @@ struct target_winsize {
> 
>   #include "termbits.h"
> 
> -#if defined(TARGET_MIPS)
> +#if defined(TARGET_MIPS) || defined(TARGET_XTENSA)
>   #define TARGET_PROT_SEM         0x10
>   #else
>   #define TARGET_PROT_SEM         0x08
> --
> 2.37.3
> 
> 

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
diff mbox series

Patch

diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 85b0f33e91..1e3577bfa5 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -1246,7 +1246,7 @@  struct target_winsize {

 #include "termbits.h"

-#if defined(TARGET_MIPS)
+#if defined(TARGET_MIPS) || defined(TARGET_XTENSA)
 #define TARGET_PROT_SEM         0x10
 #else
 #define TARGET_PROT_SEM         0x08