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-sparc | |
parent | e3b9808535376bff99343c8a61726059a965198e (diff) | |
download | qemu-a04e134ad1f4271bea2c7b7649b21e35ded91005.tar.gz qemu-a04e134ad1f4271bea2c7b7649b21e35ded91005.tar.bz2 qemu-a04e134ad1f4271bea2c7b7649b21e35ded91005.zip |
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-sparc')
-rw-r--r-- | target-sparc/cpu.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 5c8c49ab63..cb672717f4 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -316,6 +316,18 @@ void cpu_check_irqs(CPUSPARCState *env); #define cpu_gen_code cpu_sparc_gen_code #define cpu_signal_handler cpu_sparc_signal_handler +#ifndef UREG_I6 +#define UREG_I6 6 +#endif +#ifndef UREG_FP +#define UREG_FP UREG_I6 +#endif + +static inline target_ulong get_sp_from_cpustate(CPUSPARCState *state) +{ + return state->regwptr[UREG_FP]; +} + #include "cpu-all.h" #endif |