diff options
author | j_mayer | 2007-09-29 15:12:58 +0200 |
---|---|---|
committer | j_mayer | 2007-09-29 15:12:58 +0200 |
commit | 8bb1f9c51c7fa4e4ea2eeed77eb011f10b6f72c6 (patch) | |
tree | 38ae9632f2e3fba69cf89f1687403a783c462604 /linux-user/x86_64 | |
parent | Rework PowerPC exceptions model to make it more versatile: (diff) | |
download | qemu-8bb1f9c51c7fa4e4ea2eeed77eb011f10b6f72c6.tar.gz qemu-8bb1f9c51c7fa4e4ea2eeed77eb011f10b6f72c6.tar.xz qemu-8bb1f9c51c7fa4e4ea2eeed77eb011f10b6f72c6.zip |
Provision for x86_64-linux-user target: needs get_sp_from_cpustate
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3262 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/x86_64')
-rw-r--r-- | linux-user/x86_64/target_signal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/x86_64/target_signal.h b/linux-user/x86_64/target_signal.h index eb4a0bb12c..f93a8d62b9 100644 --- a/linux-user/x86_64/target_signal.h +++ b/linux-user/x86_64/target_signal.h @@ -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 */ |