Go to the documentation of this file.
9 #ifndef OPENOCD_TARGET_ESIRISC_REGS_H
10 #define OPENOCD_TARGET_ESIRISC_REGS_H
106 #define CSR_THREAD 0x00
107 #define CSR_INTERRUPT 0x01
108 #define CSR_DEBUG 0x04
109 #define CSR_CONFIG 0x05
110 #define CSR_TRACE 0x09
113 #define CSR_THREAD_TC 0x00
114 #define CSR_THREAD_PC 0x01
115 #define CSR_THREAD_CAS 0x02
116 #define CSR_THREAD_AC 0x03
117 #define CSR_THREAD_LF 0x04
118 #define CSR_THREAD_LA 0x05
119 #define CSR_THREAD_ETA 0x07
120 #define CSR_THREAD_ETC 0x08
121 #define CSR_THREAD_EPC 0x09
122 #define CSR_THREAD_ECAS 0x0a
123 #define CSR_THREAD_EID 0x0b
124 #define CSR_THREAD_ED 0x0c
127 #define CSR_INTERRUPT_IP 0x00
128 #define CSR_INTERRUPT_IA 0x01
129 #define CSR_INTERRUPT_IM 0x02
130 #define CSR_INTERRUPT_IS 0x03
131 #define CSR_INTERRUPT_IT 0x04
134 #define CSR_DEBUG_DC 0x00
135 #define CSR_DEBUG_IBC 0x01
136 #define CSR_DEBUG_DBC 0x02
137 #define CSR_DEBUG_HWDC 0x03
138 #define CSR_DEBUG_DBS 0x04
139 #define CSR_DEBUG_DBR 0x05
140 #define CSR_DEBUG_IBA_N 0x08
141 #define CSR_DEBUG_DBA_N 0x10
144 #define CSR_CONFIG_ARCH0 0x00
145 #define CSR_CONFIG_ARCH1 0x01
146 #define CSR_CONFIG_ARCH2 0x02
147 #define CSR_CONFIG_ARCH3 0x03
148 #define CSR_CONFIG_MEM 0x04
149 #define CSR_CONFIG_IC 0x05
150 #define CSR_CONFIG_DC 0x06
151 #define CSR_CONFIG_INT 0x07
152 #define CSR_CONFIG_ISA_N 0x08
153 #define CSR_CONFIG_DBG 0x0f
154 #define CSR_CONFIG_MID 0x10
155 #define CSR_CONFIG_REV 0x11
156 #define CSR_CONFIG_MPID 0x12
157 #define CSR_CONFIG_FREQ_N 0x13
158 #define CSR_CONFIG_TRACE 0x16
161 #define CSR_TRACE_CONTROL 0x00
162 #define CSR_TRACE_STATUS 0x01
163 #define CSR_TRACE_BUFFER_START 0x02
164 #define CSR_TRACE_BUFFER_END 0x03
165 #define CSR_TRACE_BUFFER_CUR 0x04
166 #define CSR_TRACE_TRIGGER 0x05
167 #define CSR_TRACE_START_DATA 0x06
168 #define CSR_TRACE_START_MASK 0x07
169 #define CSR_TRACE_STOP_DATA 0x08
170 #define CSR_TRACE_STOP_MASK 0x09
171 #define CSR_TRACE_DELAY 0x0a