mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
static inline void target_cpu_reset(CPUArchState *cpu)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue