aboutsummaryrefslogtreecommitdiff
path: root/linux-user/sh4/target_cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/sh4/target_cpu.h')
-rw-r--r--linux-user/sh4/target_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/sh4/target_cpu.h b/linux-user/sh4/target_cpu.h
index 9d305d2833..1a647ddb98 100644
--- a/linux-user/sh4/target_cpu.h
+++ b/linux-user/sh4/target_cpu.h
@@ -32,4 +32,8 @@ static inline void cpu_set_tls(CPUSH4State *env, target_ulong newtls)
env->gbr = newtls;
}
+static inline abi_ulong get_sp_from_cpustate(CPUSH4State *state)
+{
+ return state->gregs[15];
+}
#endif