aboutsummaryrefslogtreecommitdiff
path: root/linux-user/arm/target_cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/arm/target_cpu.h')
-rw-r--r--linux-user/arm/target_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/arm/target_cpu.h b/linux-user/arm/target_cpu.h
index c3eb4b243d..8a3764919a 100644
--- a/linux-user/arm/target_cpu.h
+++ b/linux-user/arm/target_cpu.h
@@ -49,4 +49,8 @@ static inline target_ulong cpu_get_tls(CPUARMState *env)
}
}
+static inline abi_ulong get_sp_from_cpustate(CPUARMState *state)
+{
+ return state->regs[13];
+}
#endif