diff options
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r-- | target-i386/cpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h index eb0052786c..7d4551e765 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -734,6 +734,15 @@ typedef struct CCTable { extern CCTable cc_table[]; +#if defined(CONFIG_USER_ONLY) +static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) +{ + if (!newsp) + env->regs[R_ESP] = newsp; + env->regs[R_EAX] = 0; +} +#endif + #include "cpu-all.h" #include "svm.h" |