aboutsummaryrefslogtreecommitdiff
path: root/linux-user/i386/target_cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/i386/target_cpu.h')
-rw-r--r--linux-user/i386/target_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/i386/target_cpu.h b/linux-user/i386/target_cpu.h
index 7fbcf9bb57..ece04d0966 100644
--- a/linux-user/i386/target_cpu.h
+++ b/linux-user/i386/target_cpu.h
@@ -45,4 +45,8 @@ static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls)
}
#endif /* defined(TARGET_ABI32) */
+static inline abi_ulong get_sp_from_cpustate(CPUX86State *state)
+{
+ return state->regs[R_ESP];
+}
#endif /* I386_TARGET_CPU_H */