]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
Provision for x86_64-linux-user target: needs get_sp_from_cpustate
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 29 Sep 2007 13:12:58 +0000 (13:12 +0000)
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 29 Sep 2007 13:12:58 +0000 (13:12 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3262 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/x86_64/target_signal.h

index eb4a0bb12c316c9eef30041cc35244c9f8872947..f93a8d62b96cfcb57fa6e2d2411eaff81324ce81 100644 (file)
@@ -21,4 +21,9 @@ typedef struct target_sigaltstack {
 #define TARGET_MINSIGSTKSZ     2048
 #define TARGET_SIGSTKSZ                8192
 
+static inline target_ulong get_sp_from_cpustate(CPUX86State *state)
+{
+    return state->regs[R_ESP];
+}
+
 #endif /* TARGET_SIGNAL_H */