From 198a74de4c61d3486c365f09361c605daab90af5 Mon Sep 17 00:00:00 2001 From: ths Date: Thu, 27 Sep 2007 16:44:32 +0000 Subject: Move get_sp_from_cpustate from cpu.h to target_signal.h. Enable sigaltstack processing for more architectures. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3253 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/ppc/target_signal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux-user/ppc') diff --git a/linux-user/ppc/target_signal.h b/linux-user/ppc/target_signal.h index e210e7a..80ad211 100644 --- a/linux-user/ppc/target_signal.h +++ b/linux-user/ppc/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(CPUPPCState *state) +{ + return state->gpr[1]; +} + #endif /* TARGET_SIGNAL_H */ -- cgit v1.1