[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 13/14] bsd-user: Make compile for non-linux user-mode stuff
From: |
Warner Losh |
Subject: |
[PULL 13/14] bsd-user: Make compile for non-linux user-mode stuff |
Date: |
Tue, 23 Jul 2024 12:07:24 -0600 |
We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use
them unconditionally. Restrict its use to Linux-only.
"It's ugly, but it's not actually wrong."
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/gdbstub64.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/arm/gdbstub64.c b/target/arm/gdbstub64.c
index c8cef8cbc0e..5221381cc85 100644
--- a/target/arm/gdbstub64.c
+++ b/target/arm/gdbstub64.c
@@ -404,6 +404,7 @@ int aarch64_gdb_get_tag_ctl_reg(CPUState *cs, GByteArray
*buf, int reg)
int aarch64_gdb_set_tag_ctl_reg(CPUState *cs, uint8_t *buf, int reg)
{
+#if defined(CONFIG_LINUX)
ARMCPU *cpu = ARM_CPU(cs);
CPUARMState *env = &cpu->env;
@@ -425,6 +426,9 @@ int aarch64_gdb_set_tag_ctl_reg(CPUState *cs, uint8_t *buf,
int reg)
arm_set_mte_tcf0(env, tcf);
return 1;
+#else
+ return 0;
+#endif
}
static void handle_q_memtag(GArray *params, void *user_ctx)
--
2.45.1
- [PULL 00/14] Bsd user for 9.1 patches, Warner Losh, 2024/07/23
- [PULL 01/14] bsd-user:Add CPU initialization and management functions, Warner Losh, 2024/07/23
- [PULL 03/14] bsd-user:Add ARM AArch64 support and capabilities, Warner Losh, 2024/07/23
- [PULL 06/14] bsd-user:Add setup_sigframe_arch function for ARM AArch64, Warner Losh, 2024/07/23
- [PULL 11/14] bsd-user: Sync fork_start/fork_end with linux-user, Warner Losh, 2024/07/23
- [PULL 05/14] bsd-user:Add get_mcontext function for ARM AArch64, Warner Losh, 2024/07/23
- [PULL 09/14] bsd-user: Simplify the implementation of execve, Warner Losh, 2024/07/23
- [PULL 04/14] bsd-user:Add ARM AArch64 signal handling support, Warner Losh, 2024/07/23
- [PULL 10/14] bsd-user: Hard wire aarch64 to be 4k pages only, Warner Losh, 2024/07/23
- [PULL 07/14] bsd-user:Add set_mcontext function for ARM AArch64, Warner Losh, 2024/07/23
- [PULL 13/14] bsd-user: Make compile for non-linux user-mode stuff,
Warner Losh <=
- [PULL 02/14] bsd-user:Add AArch64 register handling and related functions, Warner Losh, 2024/07/23
- [PULL 08/14] bsd-user:Add AArch64 improvements and signal handling functions, Warner Losh, 2024/07/23
- [PULL 12/14] bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack, Warner Losh, 2024/07/23
- [PULL 14/14] bsd-user: Add aarch64 build to tree, Warner Losh, 2024/07/23
- Re: [PULL 00/14] Bsd user for 9.1 patches, Richard Henderson, 2024/07/24