aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-27 13:57:58 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-27 13:57:58 +0000
commita04e134ad1f4271bea2c7b7649b21e35ded91005 (patch)
treeef92adda2070c7ef15473d9a10926f867e221271 /target-i386/cpu.h
parente3b9808535376bff99343c8a61726059a965198e (diff)
linux-user sigaltstack() syscall, by Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3252 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 2cc7d64e95..4f454c6e9e 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -688,6 +688,11 @@ static inline int cpu_get_time_fast(void)
#define cpu_gen_code cpu_x86_gen_code
#define cpu_signal_handler cpu_x86_signal_handler
+static inline target_ulong get_sp_from_cpustate(CPUX86State *state)
+{
+ return state->regs[R_ESP];
+}
+
#include "cpu-all.h"
#include "svm.h"