123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifndef _XTENSA_REGS_H
- #define _XTENSA_REGS_H
- #define SREG_MR 32
- #define SREG_IBREAKENABLE 96
- #define SREG_IBREAKA 128
- #define SREG_DBREAKA 144
- #define SREG_DBREAKC 160
- #define SREG_EPC 176
- #define SREG_EPS 192
- #define SREG_EXCSAVE 208
- #define SREG_CCOMPARE 240
- #define SREG_MISC 244
- #define EXCCAUSE_EXCCAUSE_SHIFT 0
- #define EXCCAUSE_EXCCAUSE_MASK 0x3F
- #define EXCCAUSE_ILLEGAL_INSTRUCTION 0
- #define EXCCAUSE_SYSTEM_CALL 1
- #define EXCCAUSE_INSTRUCTION_FETCH_ERROR 2
- #define EXCCAUSE_LOAD_STORE_ERROR 3
- #define EXCCAUSE_LEVEL1_INTERRUPT 4
- #define EXCCAUSE_ALLOCA 5
- #define EXCCAUSE_INTEGER_DIVIDE_BY_ZERO 6
- #define EXCCAUSE_SPECULATION 7
- #define EXCCAUSE_PRIVILEGED 8
- #define EXCCAUSE_UNALIGNED 9
- #define EXCCAUSE_INSTR_DATA_ERROR 12
- #define EXCCAUSE_LOAD_STORE_DATA_ERROR 13
- #define EXCCAUSE_INSTR_ADDR_ERROR 14
- #define EXCCAUSE_LOAD_STORE_ADDR_ERROR 15
- #define EXCCAUSE_ITLB_MISS 16
- #define EXCCAUSE_ITLB_MULTIHIT 17
- #define EXCCAUSE_ITLB_PRIVILEGE 18
- #define EXCCAUSE_ITLB_SIZE_RESTRICTION 19
- #define EXCCAUSE_FETCH_CACHE_ATTRIBUTE 20
- #define EXCCAUSE_DTLB_MISS 24
- #define EXCCAUSE_DTLB_MULTIHIT 25
- #define EXCCAUSE_DTLB_PRIVILEGE 26
- #define EXCCAUSE_DTLB_SIZE_RESTRICTION 27
- #define EXCCAUSE_LOAD_CACHE_ATTRIBUTE 28
- #define EXCCAUSE_STORE_CACHE_ATTRIBUTE 29
- #define EXCCAUSE_COPROCESSOR0_DISABLED 32
- #define EXCCAUSE_COPROCESSOR1_DISABLED 33
- #define EXCCAUSE_COPROCESSOR2_DISABLED 34
- #define EXCCAUSE_COPROCESSOR3_DISABLED 35
- #define EXCCAUSE_COPROCESSOR4_DISABLED 36
- #define EXCCAUSE_COPROCESSOR5_DISABLED 37
- #define EXCCAUSE_COPROCESSOR6_DISABLED 38
- #define EXCCAUSE_COPROCESSOR7_DISABLED 39
- #define PS_WOE_BIT 18
- #define PS_CALLINC_SHIFT 16
- #define PS_CALLINC_MASK 0x00030000
- #define PS_OWB_SHIFT 8
- #define PS_OWB_WIDTH 4
- #define PS_OWB_MASK 0x00000F00
- #define PS_RING_SHIFT 6
- #define PS_RING_MASK 0x000000C0
- #define PS_UM_BIT 5
- #define PS_EXCM_BIT 4
- #define PS_INTLEVEL_SHIFT 0
- #define PS_INTLEVEL_WIDTH 4
- #define PS_INTLEVEL_MASK 0x0000000F
- #define DBREAKC_MASK_BIT 0
- #define DBREAKC_MASK_MASK 0x0000003F
- #define DBREAKC_LOAD_BIT 30
- #define DBREAKC_LOAD_MASK 0x40000000
- #define DBREAKC_STOR_BIT 31
- #define DBREAKC_STOR_MASK 0x80000000
- #define DEBUGCAUSE_DBNUM_MASK 0xf00
- #define DEBUGCAUSE_DBNUM_SHIFT 8
- #define DEBUGCAUSE_DEBUGINT_BIT 5
- #define DEBUGCAUSE_BREAKN_BIT 4
- #define DEBUGCAUSE_BREAK_BIT 3
- #define DEBUGCAUSE_DBREAK_BIT 2
- #define DEBUGCAUSE_IBREAK_BIT 1
- #define DEBUGCAUSE_ICOUNT_BIT 0
- #endif
|