diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 13:49:22 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-30 13:49:22 +0000 |
commit | 0574b6fb10862d464be9b748e5d9e5327d178770 (patch) | |
tree | ccc156a905a30e6058006dfef59357dea15df0be /linux-user/sparc64 | |
parent | be147d08790d4d80bfcf2c209031eede52b7dd62 (diff) |
Add get_sp_from_cpustate implementation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3290 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/sparc64')
-rw-r--r-- | linux-user/sparc64/target_signal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-user/sparc64/target_signal.h b/linux-user/sparc64/target_signal.h index bf54ac71d..dfca12916 100644 --- a/linux-user/sparc64/target_signal.h +++ b/linux-user/sparc64/target_signal.h @@ -21,4 +21,16 @@ typedef struct target_sigaltstack { #define TARGET_MINSIGSTKSZ 4096 #define TARGET_SIGSTKSZ 16384 +#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]; +} + #endif /* TARGET_SIGNAL_H */ |