diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-02 06:31:25 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-02 06:31:25 +0000 |
commit | c3b5bc8ab325bd3aee46ea5c0884c9e6f1636ccb (patch) | |
tree | 67512177265b28092609beb04ff3a51ddd3398d8 /linux-user/sh4/target_signal.h | |
parent | 03aa19762854bc4749fea52d7f2ba7d1077c036f (diff) |
SH4: Signal handling for the user space emulator, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3764 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/sh4/target_signal.h')
-rw-r--r-- | linux-user/sh4/target_signal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/sh4/target_signal.h b/linux-user/sh4/target_signal.h index 1fb70921f3..e148da0925 100644 --- a/linux-user/sh4/target_signal.h +++ b/linux-user/sh4/target_signal.h @@ -21,4 +21,9 @@ typedef struct target_sigaltstack { #define TARGET_MINSIGSTKSZ 2048 #define TARGET_SIGSTKSZ 8192 +static inline abi_ulong get_sp_from_cpustate(CPUSH4State *state) +{ + return state->gregs[15]; +} + #endif /* TARGET_SIGNAL_H */ |