aboutsummaryrefslogtreecommitdiff
path: root/target-alpha
diff options
context:
space:
mode:
Diffstat (limited to 'target-alpha')
-rw-r--r--target-alpha/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h
index 3f517e6..ef61d87 100644
--- a/target-alpha/cpu.h
+++ b/target-alpha/cpu.h
@@ -397,4 +397,9 @@ void cpu_loop_exit (void);
void pal_init (CPUState *env);
void call_pal (CPUState *env, int palcode);
+static inline target_ulong get_sp_from_cpustate(CPUAlphaState *state)
+{
+ return state->ir[IR_SP];
+}
+
#endif /* !defined (__CPU_ALPHA_H__) */