diff options
Diffstat (limited to 'target-sparc')
-rw-r--r-- | target-sparc/cpu.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 539fd2d..54807fb 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -403,6 +403,18 @@ static inline int cpu_fpu_enabled(CPUState *env1) #endif } +#if defined(CONFIG_USER_ONLY) +static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) +{ + if (!newsp) + env->regwptr[22] = newsp; + env->regwptr[0] = 0; + /* FIXME: Do we also need to clear CF? */ + /* XXXXX */ + printf ("HELPME: %s:%d\n", __FILE__, __LINE__); +} +#endif + #include "cpu-all.h" #endif |