From a04e134ad1f4271bea2c7b7649b21e35ded91005 Mon Sep 17 00:00:00 2001 From: ths Date: Thu, 27 Sep 2007 13:57:58 +0000 Subject: linux-user sigaltstack() syscall, by Thayne Harbaugh. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3252 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-mips/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target-mips') 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__) */ -- cgit v1.2.3