From: ths Date: Fri, 28 Sep 2007 18:45:59 +0000 (+0000) Subject: Build fix, ppc64 needs also a get_sp_from_cpustate function now. X-Git-Tag: release_0_9_1~643 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df0d37366561d8f23703cd7cf754fefde79e618c;p=thirdparty%2Fqemu.git Build fix, ppc64 needs also a get_sp_from_cpustate function now. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3254 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/linux-user/ppc64/target_signal.h b/linux-user/ppc64/target_signal.h index e210e7a3170..80ad21187f7 100644 --- a/linux-user/ppc64/target_signal.h +++ b/linux-user/ppc64/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 */