diff mbox series

[1/3] linux-user/loongarch64: Remove TARGET_FORCE_SHMLBA

Message ID 20240223030309.458451-2-richard.henderson@linaro.org
State Superseded
Headers show
Series linux-user: Rewrite target_shmat | expand

Commit Message

Richard Henderson Feb. 23, 2024, 3:03 a.m. UTC
The upstream linux kernel does not define __ARCH_FORCE_SHMLBA.

Cc: Song Gao <gaosong@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---

Did this definition come from the port before it was merged upstream?
Or was it incorrectly copied from MIPS?
---
 linux-user/loongarch64/target_syscall.h | 7 -------
 1 file changed, 7 deletions(-)

Comments

gaosong Feb. 23, 2024, 3:42 a.m. UTC | #1
在 2024/2/23 上午11:03, Richard Henderson 写道:
> The upstream linux kernel does not define __ARCH_FORCE_SHMLBA.
>
> Cc: Song Gao <gaosong@loongson.cn>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
>
> ---
>
> Did this definition come from the port before it was merged upstream?
Yes,

The patch [1]  dropped it .
     [1] 
https://patchew.org/linux/20240106145501.3370364-1-chenhuacai@loongson.cn/


Reviewed-by: Song Gao <gaosong@loongson.cn>

Thanks.
Song Gao
> Or was it incorrectly copied from MIPS?
> ---
>   linux-user/loongarch64/target_syscall.h | 7 -------
>   1 file changed, 7 deletions(-)
>
> diff --git a/linux-user/loongarch64/target_syscall.h b/linux-user/loongarch64/target_syscall.h
> index 8b5de52124..39f229bb9c 100644
> --- a/linux-user/loongarch64/target_syscall.h
> +++ b/linux-user/loongarch64/target_syscall.h
> @@ -38,11 +38,4 @@ struct target_pt_regs {
>   #define TARGET_MCL_FUTURE  2
>   #define TARGET_MCL_ONFAULT 4
>   
> -#define TARGET_FORCE_SHMLBA
> -
> -static inline abi_ulong target_shmlba(CPULoongArchState *env)
> -{
> -    return 64 * KiB;
> -}
> -
>   #endif
diff mbox series

Patch

diff --git a/linux-user/loongarch64/target_syscall.h b/linux-user/loongarch64/target_syscall.h
index 8b5de52124..39f229bb9c 100644
--- a/linux-user/loongarch64/target_syscall.h
+++ b/linux-user/loongarch64/target_syscall.h
@@ -38,11 +38,4 @@  struct target_pt_regs {
 #define TARGET_MCL_FUTURE  2
 #define TARGET_MCL_ONFAULT 4
 
-#define TARGET_FORCE_SHMLBA
-
-static inline abi_ulong target_shmlba(CPULoongArchState *env)
-{
-    return 64 * KiB;
-}
-
 #endif