arm: helper: Factor out CP regs common to [pv]msa
[qemu.git] / linux-user / unicore32 / target_signal.h
blob8b255c455088669e0b7cc1ec8feac13b85b84d07
1 /*
2 * Copyright (C) 2010-2011 GUAN Xue-tao
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8 #ifndef TARGET_SIGNAL_H
9 #define TARGET_SIGNAL_H
11 /* this struct defines a stack used during syscall handling */
12 typedef struct target_sigaltstack {
13 abi_ulong ss_sp;
14 abi_ulong ss_flags;
15 abi_ulong ss_size;
16 } target_stack_t;
19 * sigaltstack controls
21 #define TARGET_SS_ONSTACK 1
22 #define TARGET_SS_DISABLE 2
24 #define get_sp_from_cpustate(cpustate) (cpustate->regs[29])
26 #endif /* TARGET_SIGNAL_H */