34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
|
|
From 464666abdb5250ca0295c5ec99cc2ee515cac920 Mon Sep 17 00:00:00 2001
|
||
|
|
From: =?UTF-8?q?=E5=88=98=E5=A9=A720201110?=
|
||
|
|
<liujing_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Fri, 6 Dec 2024 17:36:46 +0800
|
||
|
|
Subject: [PATCH] linux-user: Fix TARGET_PROT_SEM for XTENSA
|
||
|
|
|
||
|
|
The xtensa platform has a value of 0x10 for PROT_SEM.
|
||
|
|
|
||
|
|
Signed-off-by: Helge Deller <deller@gmx.de>
|
||
|
|
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
|
||
|
|
Message-Id: <20220924114501.21767-2-deller@gmx.de>
|
||
|
|
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
|
||
|
|
Signed-off-by: Liu Jing <liujing_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
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 a04f399278..077a059701 100644
|
||
|
|
--- a/linux-user/syscall_defs.h
|
||
|
|
+++ b/linux-user/syscall_defs.h
|
||
|
|
@@ -1295,7 +1295,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.41.0.windows.1
|
||
|
|
|