summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-28 18:45:59 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-28 18:45:59 +0000
commitdf0d37366561d8f23703cd7cf754fefde79e618c (patch)
tree45ab0776181623e5fa15d297ac80e9fd59260757 /linux-user
parent198a74de4c61d3486c365f09361c605daab90af5 (diff)
downloadqemu-df0d37366561d8f23703cd7cf754fefde79e618c.tar.gz
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
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/ppc64/target_signal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/ppc64/target_signal.h b/linux-user/ppc64/target_signal.h
index e210e7a317..80ad21187f 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 */