diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-27 13:57:58 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-27 13:57:58 +0000 |
commit | a04e134ad1f4271bea2c7b7649b21e35ded91005 (patch) | |
tree | ef92adda2070c7ef15473d9a10926f867e221271 /target-mips/cpu.h | |
parent | e3b9808535376bff99343c8a61726059a965198e (diff) |
linux-user sigaltstack() syscall, by Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3252 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/cpu.h')
-rw-r--r-- | target-mips/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 569f9325bf..dd8388152a 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -548,4 +548,9 @@ CPUMIPSState *cpu_mips_init(void); uint32_t cpu_mips_get_clock (void); int cpu_mips_signal_handler(int host_signum, void *pinfo, void *puc); +static inline target_ulong get_sp_from_cpustate(CPUMIPSState *state) +{ + return state->gpr[29][state->current_tc]; +} + #endif /* !defined (__MIPS_CPU_H__) */ |