aboutsummaryrefslogtreecommitdiff
path: root/linux-user/s390x/target_cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/s390x/target_cpu.h')
-rw-r--r--linux-user/s390x/target_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/s390x/target_cpu.h b/linux-user/s390x/target_cpu.h
index 87ea4d2d9b..66ef8aa8c2 100644
--- a/linux-user/s390x/target_cpu.h
+++ b/linux-user/s390x/target_cpu.h
@@ -36,4 +36,8 @@ static inline void cpu_set_tls(CPUS390XState *env, target_ulong newtls)
env->aregs[1] = newtls & 0xffffffffULL;
}
+static inline abi_ulong get_sp_from_cpustate(CPUS390XState *state)
+{
+ return state->regs[15];
+}
#endif