From c3b5bc8ab325bd3aee46ea5c0884c9e6f1636ccb Mon Sep 17 00:00:00 2001 From: ths Date: Sun, 2 Dec 2007 06:31:25 +0000 Subject: 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 --- linux-user/sh4/target_signal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux-user/sh4/target_signal.h') 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 */ -- cgit v1.2.3