mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-27 15:00:13 +00:00
target-ppc: fix cpu_clone_regs
We only need to make sure that the clone syscall looks like it succeeded, not clobber 60% of the register set. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
28e738dcb8
commit
d11f69b201
@ -817,11 +817,9 @@ static inline int cpu_mmu_index (CPUState *env)
|
|||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
|
static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
if (newsp)
|
if (newsp)
|
||||||
env->gpr[1] = newsp;
|
env->gpr[1] = newsp;
|
||||||
for (i = 7; i < 32; i++)
|
env->gpr[3] = 0;
|
||||||
env->gpr[i] = 0;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user