Commit 0574b6fb10862d464be9b748e5d9e5327d178770
1 parent
be147d08
Add get_sp_from_cpustate implementation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3290 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
12 additions
and
0 deletions
linux-user/sparc64/target_signal.h
| ... | ... | @@ -21,4 +21,16 @@ typedef struct target_sigaltstack { |
| 21 | 21 | #define TARGET_MINSIGSTKSZ 4096 |
| 22 | 22 | #define TARGET_SIGSTKSZ 16384 |
| 23 | 23 | |
| 24 | +#ifndef UREG_I6 | |
| 25 | +#define UREG_I6 6 | |
| 26 | +#endif | |
| 27 | +#ifndef UREG_FP | |
| 28 | +#define UREG_FP UREG_I6 | |
| 29 | +#endif | |
| 30 | + | |
| 31 | +static inline target_ulong get_sp_from_cpustate(CPUSPARCState *state) | |
| 32 | +{ | |
| 33 | + return state->regwptr[UREG_FP]; | |
| 34 | +} | |
| 35 | + | |
| 24 | 36 | #endif /* TARGET_SIGNAL_H */ | ... | ... |