2
0

target_signal.h 485 B

123456789101112131415161718192021222324252627
  1. #ifndef TARGET_SIGNAL_H
  2. #define TARGET_SIGNAL_H
  3. #include "cpu.h"
  4. /* this struct defines a stack used during syscall handling */
  5. typedef struct target_sigaltstack {
  6. abi_ulong ss_sp;
  7. abi_long ss_flags;
  8. abi_ulong ss_size;
  9. } target_stack_t;
  10. #ifndef UREG_I6
  11. #define UREG_I6 6
  12. #endif
  13. #ifndef UREG_FP
  14. #define UREG_FP UREG_I6
  15. #endif
  16. static inline abi_ulong get_sp_from_cpustate(CPUSPARCState *state)
  17. {
  18. return state->regwptr[UREG_FP];
  19. }
  20. #endif /* TARGET_SIGNAL_H */