[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 16/36] bsd-user/arm/target_arch_cpu.h: Implement target_cpu_cl
From: |
Warner Losh |
Subject: |
[PATCH v4 16/36] bsd-user/arm/target_arch_cpu.h: Implement target_cpu_clone_regs |
Date: |
Thu, 4 Nov 2021 21:18:57 -0600 |
Implement target_cpu_clone_regs to clone the resister state on a fork.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/arm/target_arch_cpu.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bsd-user/arm/target_arch_cpu.h b/bsd-user/arm/target_arch_cpu.h
index 66215684d6..fa45d9335d 100644
--- a/bsd-user/arm/target_arch_cpu.h
+++ b/bsd-user/arm/target_arch_cpu.h
@@ -36,6 +36,14 @@ static inline void target_cpu_init(CPUARMState *env,
}
}
+static inline void target_cpu_clone_regs(CPUARMState *env, target_ulong newsp)
+{
+ if (newsp) {
+ env->regs[13] = newsp;
+ }
+ env->regs[0] = 0;
+}
+
static inline void target_cpu_reset(CPUArchState *cpu)
{
}
--
2.33.0
- Re: [PATCH v4 07/36] bsd-user/i386: Move the inlines into signal.c, (continued)
[PATCH v4 03/36] bsd-user: create a per-arch signal.c file, Warner Losh, 2021/11/04
[PATCH v4 06/36] bsd-user/i386/target_arch_signal.h: Update mcontext_t to match FreeBSD, Warner Losh, 2021/11/04
[PATCH v4 04/36] bsd-user/i386/target_arch_signal.h: Remove target_sigcontext, Warner Losh, 2021/11/04
[PATCH v4 08/36] bsd-user/x86_64/target_arch_signal.h: Remove target_sigcontext, Warner Losh, 2021/11/04
[PATCH v4 10/36] bsd-user/x86_64/target_arch_signal.h: Fill in mcontext_t, Warner Losh, 2021/11/04
[PATCH v4 16/36] bsd-user/arm/target_arch_cpu.h: Implement target_cpu_clone_regs,
Warner Losh <=
[PATCH v4 17/36] bsd-user/arm/target_arch_cpu.h: Dummy target_cpu_loop implementation, Warner Losh, 2021/11/04
[PATCH v4 14/36] bsd-user/arm/target_arch_cpu.c: Target specific TLS routines, Warner Losh, 2021/11/04
[PATCH v4 12/36] bsd-user/arm/target_arch_sysarch.h: Use consistent include guards, Warner Losh, 2021/11/04
[PATCH v4 01/36] bsd-user/mips*: Remove, Warner Losh, 2021/11/04
[PATCH v4 05/36] bsd-user/i386/target_arch_signal.h: use new target_os_ucontext.h, Warner Losh, 2021/11/04
[PATCH v4 11/36] bsd-user/x86_64: Move functions into signal.c, Warner Losh, 2021/11/04