diff options
Diffstat (limited to 'target-alpha')
-rw-r--r-- | target-alpha/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 3f517e67b6..ef61d87483 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__) */ |