diff options
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r-- | target-ppc/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 06dc083..d08bbba 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -826,7 +826,7 @@ static inline int cpu_mmu_index (CPUState *env) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { int i; - if (!newsp) + if (newsp) env->gpr[1] = newsp; for (i = 7; i < 32; i++) env->gpr[i] = 0; |