]> git.proxmox.com Git - mirror_qemu.git/blob - linux-user/xtensa/target_syscall.h
x86/cpu: use FeatureWordArray to define filtered_features
[mirror_qemu.git] / linux-user / xtensa / target_syscall.h
1 #ifndef XTENSA_TARGET_SYSCALL_H
2 #define XTENSA_TARGET_SYSCALL_H
3
4 #define UNAME_MACHINE "xtensa"
5
6 #define UNAME_MINIMUM_RELEASE "3.19"
7 #define TARGET_CLONE_BACKWARDS
8
9 #define MMAP_SHIFT TARGET_PAGE_BITS
10
11 typedef uint32_t xtensa_reg_t;
12 typedef struct {
13 } xtregs_opt_t; /* TODO */
14
15 struct target_pt_regs {
16 xtensa_reg_t pc; /* 4 */
17 xtensa_reg_t ps; /* 8 */
18 xtensa_reg_t depc; /* 12 */
19 xtensa_reg_t exccause; /* 16 */
20 xtensa_reg_t excvaddr; /* 20 */
21 xtensa_reg_t debugcause; /* 24 */
22 xtensa_reg_t wmask; /* 28 */
23 xtensa_reg_t lbeg; /* 32 */
24 xtensa_reg_t lend; /* 36 */
25 xtensa_reg_t lcount; /* 40 */
26 xtensa_reg_t sar; /* 44 */
27 xtensa_reg_t windowbase; /* 48 */
28 xtensa_reg_t windowstart; /* 52 */
29 xtensa_reg_t syscall; /* 56 */
30 xtensa_reg_t icountlevel; /* 60 */
31 xtensa_reg_t scompare1; /* 64 */
32 xtensa_reg_t threadptr; /* 68 */
33
34 /* Additional configurable registers that are used by the compiler. */
35 xtregs_opt_t xtregs_opt;
36
37 /* Make sure the areg field is 16 bytes aligned. */
38 int align[0] __attribute__ ((aligned(16)));
39
40 /* current register frame.
41 * Note: The ESF for kernel exceptions ends after 16 registers!
42 */
43 xtensa_reg_t areg[16];
44 };
45
46 #define TARGET_MLOCKALL_MCL_CURRENT 1
47 #define TARGET_MLOCKALL_MCL_FUTURE 2
48
49 #endif