aboutsummaryrefslogtreecommitdiff
path: root/linux-user/aarch64/target_cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/aarch64/target_cpu.h')
-rw-r--r--linux-user/aarch64/target_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/aarch64/target_cpu.h b/linux-user/aarch64/target_cpu.h
index 777ce29f16..a021c95fa4 100644
--- a/linux-user/aarch64/target_cpu.h
+++ b/linux-user/aarch64/target_cpu.h
@@ -35,4 +35,8 @@ static inline void cpu_set_tls(CPUARMState *env, target_ulong newtls)
env->cp15.tpidr_el[0] = newtls;
}
+static inline abi_ulong get_sp_from_cpustate(CPUARMState *state)
+{
+ return state->xregs[31];
+}
#endif