diff options
Diffstat (limited to 'linux-user/i386/target_signal.h')
-rw-r--r-- | linux-user/i386/target_signal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/i386/target_signal.h b/linux-user/i386/target_signal.h index eb4a0bb..f93a8d6 100644 --- a/linux-user/i386/target_signal.h +++ b/linux-user/i386/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 */ |