Go to the documentation of this file.
25 #ifndef _XTENSA_REGS_H
26 #define _XTENSA_REGS_H
31 #define SREG_IBREAKA 128
32 #define SREG_DBREAKA 144
33 #define SREG_DBREAKC 160
36 #define SREG_EXCSAVE 208
37 #define SREG_CCOMPARE 240
42 #define EXCCAUSE_EXCCAUSE_SHIFT 0
43 #define EXCCAUSE_EXCCAUSE_MASK 0x3F
45 #define EXCCAUSE_ILLEGAL_INSTRUCTION 0
46 #define EXCCAUSE_SYSTEM_CALL 1
47 #define EXCCAUSE_INSTRUCTION_FETCH_ERROR 2
48 #define EXCCAUSE_LOAD_STORE_ERROR 3
49 #define EXCCAUSE_LEVEL1_INTERRUPT 4
50 #define EXCCAUSE_ALLOCA 5
51 #define EXCCAUSE_INTEGER_DIVIDE_BY_ZERO 6
52 #define EXCCAUSE_SPECULATION 7
53 #define EXCCAUSE_PRIVILEGED 8
54 #define EXCCAUSE_UNALIGNED 9
55 #define EXCCAUSE_ITLB_MISS 16
56 #define EXCCAUSE_ITLB_MULTIHIT 17
57 #define EXCCAUSE_ITLB_PRIVILEGE 18
58 #define EXCCAUSE_ITLB_SIZE_RESTRICTION 19
59 #define EXCCAUSE_FETCH_CACHE_ATTRIBUTE 20
60 #define EXCCAUSE_DTLB_MISS 24
61 #define EXCCAUSE_DTLB_MULTIHIT 25
62 #define EXCCAUSE_DTLB_PRIVILEGE 26
63 #define EXCCAUSE_DTLB_SIZE_RESTRICTION 27
64 #define EXCCAUSE_LOAD_CACHE_ATTRIBUTE 28
65 #define EXCCAUSE_STORE_CACHE_ATTRIBUTE 29
66 #define EXCCAUSE_COPROCESSOR0_DISABLED 32
67 #define EXCCAUSE_COPROCESSOR1_DISABLED 33
68 #define EXCCAUSE_COPROCESSOR2_DISABLED 34
69 #define EXCCAUSE_COPROCESSOR3_DISABLED 35
70 #define EXCCAUSE_COPROCESSOR4_DISABLED 36
71 #define EXCCAUSE_COPROCESSOR5_DISABLED 37
72 #define EXCCAUSE_COPROCESSOR6_DISABLED 38
73 #define EXCCAUSE_COPROCESSOR7_DISABLED 39
78 #define PS_CALLINC_SHIFT 16
79 #define PS_CALLINC_MASK 0x00030000
80 #define PS_OWB_SHIFT 8
81 #define PS_OWB_MASK 0x00000F00
82 #define PS_RING_SHIFT 6
83 #define PS_RING_MASK 0x000000C0
86 #define PS_INTLEVEL_SHIFT 0
87 #define PS_INTLEVEL_MASK 0x0000000F
91 #define DBREAKC_MASK_BIT 0
92 #define DBREAKC_MASK_MASK 0x0000003F
93 #define DBREAKC_LOAD_BIT 30
94 #define DBREAKC_LOAD_MASK 0x40000000
95 #define DBREAKC_STOR_BIT 31
96 #define DBREAKC_STOR_MASK 0x80000000
100 #define DEBUGCAUSE_DEBUGINT_BIT 5
101 #define DEBUGCAUSE_BREAKN_BIT 4
102 #define DEBUGCAUSE_BREAK_BIT 3
103 #define DEBUGCAUSE_DBREAK_BIT 2
104 #define DEBUGCAUSE_IBREAK_BIT 1
105 #define DEBUGCAUSE_ICOUNT_BIT 0