diff options
Diffstat (limited to 'target-mips/cpu.h')
-rw-r--r-- | target-mips/cpu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 9295b531d6..f9fcafbb1f 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -500,6 +500,16 @@ static inline int cpu_mmu_index (CPUState *env) return env->hflags & MIPS_HFLAG_KSU; } +#if defined(CONFIG_USER_ONLY) +static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) +{ + if (!newsp) + env->gpr[env->current_tc][29] = newsp; + env->gpr[env->current_tc][7] = 0; + env->gpr[env->current_tc][2] = 0; +} +#endif + #include "cpu-all.h" /* Memory access type : |