bsd-user/arm/target_arch_cpu.h: Implement target_cpu_clone_regs
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>
This commit is contained in:
parent
ca5d32a3f3
commit
e17d4c9a37
@ -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)
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user