diff options
Diffstat (limited to 'target-sh4')
-rw-r--r-- | target-sh4/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index 9294b94e3..c349bc886 100644 --- a/target-sh4/cpu.h +++ b/target-sh4/cpu.h @@ -146,7 +146,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->gregs[15] = newsp; env->gregs[0] = 0; } |