aboutsummaryrefslogtreecommitdiff
path: root/target-m68k
diff options
context:
space:
mode:
Diffstat (limited to 'target-m68k')
-rw-r--r--target-m68k/cpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/target-m68k/cpu.h b/target-m68k/cpu.h
index d5c5a10556..76914525f6 100644
--- a/target-m68k/cpu.h
+++ b/target-m68k/cpu.h
@@ -226,6 +226,15 @@ static inline int cpu_mmu_index (CPUState *env)
return (env->sr & SR_S) == 0 ? 1 : 0;
}
+#if defined(CONFIG_USER_ONLY)
+static inline void cpu_clone_regs(CPUState *env, target_ulong newsp)
+{
+ if (!newsp)
+ env->aregs[7] = newsp;
+ env->dregs[0] = 0;
+}
+#endif
+
#include "cpu-all.h"
#endif