diff options
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h index ea86bf9024..a4f016f125 100644 --- a/target-cris/cpu.h +++ b/target-cris/cpu.h @@ -221,7 +221,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[14] = newsp; env->regs[10] = 0; } |