[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 36/37] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*
From: |
Warner Losh |
Subject: |
[PATCH v5 36/37] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE |
Date: |
Sun, 7 Nov 2021 20:51:35 -0700 |
Now that all architecutres define TARGET_[MU]CONTEXT_SIZE, enforce
requiring them and always check the sizeof target_{u,m}context_t
sizes.
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/freebsd/target_os_ucontext.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/bsd-user/freebsd/target_os_ucontext.h
b/bsd-user/freebsd/target_os_ucontext.h
index dd61aec7cc..41b28b2c15 100644
--- a/bsd-user/freebsd/target_os_ucontext.h
+++ b/bsd-user/freebsd/target_os_ucontext.h
@@ -27,10 +27,8 @@ typedef struct target_ucontext {
int32_t __spare__[4];
} target_ucontext_t;
-#ifdef TARGET_MCONTEXT_SIZE
G_STATIC_ASSERT(TARGET_MCONTEXT_SIZE == sizeof(target_mcontext_t));
G_STATIC_ASSERT(TARGET_UCONTEXT_SIZE == sizeof(target_ucontext_t));
-#endif /* TARGET_MCONTEXT_SIZE */
struct target_sigframe;
--
2.33.0
- [PATCH v5 28/37] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, (continued)
- [PATCH v5 28/37] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, Warner Losh, 2021/11/07
- [PATCH v5 20/37] bsd-user/arm/target_arch_cpu.h: Implement data abort exceptions, Warner Losh, 2021/11/07
- [PATCH v5 23/37] bsd-user/arm/target_arch_vmparam.h: Parameters for arm address space, Warner Losh, 2021/11/07
- [PATCH v5 27/37] bsd-user/arm/target_arch_elf.h: arm get hwcap, Warner Losh, 2021/11/07
- [PATCH v5 34/37] bsd-user/arm/signal.c: arm set_mcontext, Warner Losh, 2021/11/07
- [PATCH v5 33/37] bsd-user/arm/signal.c: arm get_mcontext, Warner Losh, 2021/11/07
- [PATCH v5 35/37] bsd-user/arm/signal.c: arm get_ucontext_sigreturn, Warner Losh, 2021/11/07
- [PATCH v5 31/37] bsd-user/arm/target_arch_signal.h: Define size of *context_t, Warner Losh, 2021/11/07
- [PATCH v5 32/37] bsd-user/arm/signal.c: arm set_sigtramp_args, Warner Losh, 2021/11/07
- [PATCH v5 36/37] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE,
Warner Losh <=
- [PATCH v5 37/37] bsd-user: add arm target build, Warner Losh, 2021/11/07