diff options
Diffstat (limited to 'target-arm/cpu.h')
-rw-r--r-- | target-arm/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 1c51d2df40..5005bf6dd3 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -411,7 +411,7 @@ static inline int cpu_mmu_index (CPUState *env) #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { - if (!newsp) + if (newsp) env->regs[13] = newsp; env->regs[0] = 0; } |