diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-30 17:22:15 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-30 17:22:15 +0000 |
commit | 6e68e076e72f42d43cc3b5435751d796c2410a3f (patch) | |
tree | 75146f8907674df3e5d8bbb8a579940d9b73b677 /target-sparc/cpu.h | |
parent | a4a99d71b29ef6e506feeabc119e8ddf8490b07b (diff) |
Move clone() register setup to target specific code. Handle fork-like clone.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4623 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/cpu.h')
-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 539fd2d264..54807fb021 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 |