Lines Matching refs:debug_state
57 static void arm64_read_hw_breakpoint_by_index(arm64_debug_state_t* debug_state, in arm64_read_hw_breakpoint_by_index() argument
63 debug_state->hw_bps[0].dbgbcr = __arm_rsr("dbgbcr0_el1"); in arm64_read_hw_breakpoint_by_index()
64 debug_state->hw_bps[0].dbgbvr = __arm_rsr64("dbgbvr0_el1"); in arm64_read_hw_breakpoint_by_index()
67 debug_state->hw_bps[1].dbgbcr = __arm_rsr("dbgbcr1_el1"); in arm64_read_hw_breakpoint_by_index()
68 debug_state->hw_bps[1].dbgbvr = __arm_rsr64("dbgbvr1_el1"); in arm64_read_hw_breakpoint_by_index()
71 debug_state->hw_bps[2].dbgbcr = __arm_rsr("dbgbcr2_el1"); in arm64_read_hw_breakpoint_by_index()
72 debug_state->hw_bps[2].dbgbvr = __arm_rsr64("dbgbvr2_el1"); in arm64_read_hw_breakpoint_by_index()
75 debug_state->hw_bps[3].dbgbcr = __arm_rsr("dbgbcr3_el1"); in arm64_read_hw_breakpoint_by_index()
76 debug_state->hw_bps[3].dbgbvr = __arm_rsr64("dbgbvr3_el1"); in arm64_read_hw_breakpoint_by_index()
79 debug_state->hw_bps[4].dbgbcr = __arm_rsr("dbgbcr4_el1"); in arm64_read_hw_breakpoint_by_index()
80 debug_state->hw_bps[4].dbgbvr = __arm_rsr64("dbgbvr4_el1"); in arm64_read_hw_breakpoint_by_index()
83 debug_state->hw_bps[5].dbgbcr = __arm_rsr("dbgbcr5_el1"); in arm64_read_hw_breakpoint_by_index()
84 debug_state->hw_bps[5].dbgbvr = __arm_rsr64("dbgbvr5_el1"); in arm64_read_hw_breakpoint_by_index()
87 debug_state->hw_bps[6].dbgbcr = __arm_rsr("dbgbcr6_el1"); in arm64_read_hw_breakpoint_by_index()
88 debug_state->hw_bps[6].dbgbvr = __arm_rsr64("dbgbvr6_el1"); in arm64_read_hw_breakpoint_by_index()
91 debug_state->hw_bps[7].dbgbcr = __arm_rsr("dbgbcr7_el1"); in arm64_read_hw_breakpoint_by_index()
92 debug_state->hw_bps[7].dbgbvr = __arm_rsr64("dbgbvr7_el1"); in arm64_read_hw_breakpoint_by_index()
95 debug_state->hw_bps[8].dbgbcr = __arm_rsr("dbgbcr8_el1"); in arm64_read_hw_breakpoint_by_index()
96 debug_state->hw_bps[8].dbgbvr = __arm_rsr64("dbgbvr8_el1"); in arm64_read_hw_breakpoint_by_index()
99 debug_state->hw_bps[9].dbgbcr = __arm_rsr("dbgbcr9_el1"); in arm64_read_hw_breakpoint_by_index()
100 debug_state->hw_bps[9].dbgbvr = __arm_rsr64("dbgbvr9_el1"); in arm64_read_hw_breakpoint_by_index()
103 debug_state->hw_bps[10].dbgbcr = __arm_rsr("dbgbcr10_el1"); in arm64_read_hw_breakpoint_by_index()
104 debug_state->hw_bps[10].dbgbvr = __arm_rsr64("dbgbvr10_el1"); in arm64_read_hw_breakpoint_by_index()
107 debug_state->hw_bps[11].dbgbcr = __arm_rsr("dbgbcr11_el1"); in arm64_read_hw_breakpoint_by_index()
108 debug_state->hw_bps[11].dbgbvr = __arm_rsr64("dbgbvr11_el1"); in arm64_read_hw_breakpoint_by_index()
111 debug_state->hw_bps[12].dbgbcr = __arm_rsr("dbgbcr12_el1"); in arm64_read_hw_breakpoint_by_index()
112 debug_state->hw_bps[12].dbgbvr = __arm_rsr64("dbgbvr12_el1"); in arm64_read_hw_breakpoint_by_index()
115 debug_state->hw_bps[13].dbgbcr = __arm_rsr("dbgbcr13_el1"); in arm64_read_hw_breakpoint_by_index()
116 debug_state->hw_bps[13].dbgbvr = __arm_rsr64("dbgbvr13_el1"); in arm64_read_hw_breakpoint_by_index()
119 debug_state->hw_bps[14].dbgbcr = __arm_rsr("dbgbcr14_el1"); in arm64_read_hw_breakpoint_by_index()
120 debug_state->hw_bps[14].dbgbvr = __arm_rsr64("dbgbvr14_el1"); in arm64_read_hw_breakpoint_by_index()
123 debug_state->hw_bps[15].dbgbcr = __arm_rsr("dbgbcr15_el1"); in arm64_read_hw_breakpoint_by_index()
124 debug_state->hw_bps[15].dbgbvr = __arm_rsr64("dbgbvr15_el1"); in arm64_read_hw_breakpoint_by_index()
131 void arm64_read_hw_debug_regs(arm64_debug_state_t* debug_state) { in arm64_read_hw_debug_regs() argument
134 arm64_read_hw_breakpoint_by_index(debug_state, i); in arm64_read_hw_debug_regs()
140 static void arm64_write_hw_breakpoint_by_index(const arm64_debug_state_t* debug_state, in arm64_write_hw_breakpoint_by_index() argument
146 __arm_wsr("dbgbcr0_el1", debug_state->hw_bps[0].dbgbcr); in arm64_write_hw_breakpoint_by_index()
148 __arm_wsr64("dbgbvr0_el1", debug_state->hw_bps[0].dbgbvr); in arm64_write_hw_breakpoint_by_index()
152 __arm_wsr("dbgbcr1_el1", debug_state->hw_bps[1].dbgbcr); in arm64_write_hw_breakpoint_by_index()
154 __arm_wsr64("dbgbvr1_el1", debug_state->hw_bps[1].dbgbvr); in arm64_write_hw_breakpoint_by_index()
158 __arm_wsr("dbgbcr2_el1", debug_state->hw_bps[2].dbgbcr); in arm64_write_hw_breakpoint_by_index()
160 __arm_wsr64("dbgbvr2_el1", debug_state->hw_bps[2].dbgbvr); in arm64_write_hw_breakpoint_by_index()
164 __arm_wsr("dbgbcr3_el1", debug_state->hw_bps[3].dbgbcr); in arm64_write_hw_breakpoint_by_index()
166 __arm_wsr64("dbgbvr3_el1", debug_state->hw_bps[3].dbgbvr); in arm64_write_hw_breakpoint_by_index()
170 __arm_wsr("dbgbcr4_el1", debug_state->hw_bps[4].dbgbcr); in arm64_write_hw_breakpoint_by_index()
172 __arm_wsr64("dbgbvr4_el1", debug_state->hw_bps[4].dbgbvr); in arm64_write_hw_breakpoint_by_index()
176 __arm_wsr("dbgbcr5_el1", debug_state->hw_bps[5].dbgbcr); in arm64_write_hw_breakpoint_by_index()
178 __arm_wsr64("dbgbvr5_el1", debug_state->hw_bps[5].dbgbvr); in arm64_write_hw_breakpoint_by_index()
182 __arm_wsr("dbgbcr6_el1", debug_state->hw_bps[6].dbgbcr); in arm64_write_hw_breakpoint_by_index()
184 __arm_wsr64("dbgbvr6_el1", debug_state->hw_bps[6].dbgbvr); in arm64_write_hw_breakpoint_by_index()
188 __arm_wsr("dbgbcr7_el1", debug_state->hw_bps[7].dbgbcr); in arm64_write_hw_breakpoint_by_index()
190 __arm_wsr64("dbgbvr7_el1", debug_state->hw_bps[7].dbgbvr); in arm64_write_hw_breakpoint_by_index()
194 __arm_wsr("dbgbcr8_el1", debug_state->hw_bps[8].dbgbcr); in arm64_write_hw_breakpoint_by_index()
196 __arm_wsr64("dbgbvr8_el1", debug_state->hw_bps[8].dbgbvr); in arm64_write_hw_breakpoint_by_index()
200 __arm_wsr("dbgbcr9_el1", debug_state->hw_bps[9].dbgbcr); in arm64_write_hw_breakpoint_by_index()
202 __arm_wsr64("dbgbvr9_el1", debug_state->hw_bps[9].dbgbvr); in arm64_write_hw_breakpoint_by_index()
206 __arm_wsr("dbgbcr10_el1", debug_state->hw_bps[10].dbgbcr); in arm64_write_hw_breakpoint_by_index()
208 __arm_wsr64("dbgbvr10_el1", debug_state->hw_bps[10].dbgbvr); in arm64_write_hw_breakpoint_by_index()
212 __arm_wsr("dbgbcr11_el1", debug_state->hw_bps[11].dbgbcr); in arm64_write_hw_breakpoint_by_index()
214 __arm_wsr64("dbgbvr11_el1", debug_state->hw_bps[11].dbgbvr); in arm64_write_hw_breakpoint_by_index()
218 __arm_wsr("dbgbcr12_el1", debug_state->hw_bps[12].dbgbcr); in arm64_write_hw_breakpoint_by_index()
220 __arm_wsr64("dbgbvr12_el1", debug_state->hw_bps[12].dbgbvr); in arm64_write_hw_breakpoint_by_index()
224 __arm_wsr("dbgbcr13_el1", debug_state->hw_bps[13].dbgbcr); in arm64_write_hw_breakpoint_by_index()
226 __arm_wsr64("dbgbvr13_el1", debug_state->hw_bps[13].dbgbvr); in arm64_write_hw_breakpoint_by_index()
230 __arm_wsr("dbgbcr14_el1", debug_state->hw_bps[14].dbgbcr); in arm64_write_hw_breakpoint_by_index()
232 __arm_wsr64("dbgbvr14_el1", debug_state->hw_bps[14].dbgbvr); in arm64_write_hw_breakpoint_by_index()
236 __arm_wsr("dbgbcr15_el1", debug_state->hw_bps[15].dbgbcr); in arm64_write_hw_breakpoint_by_index()
238 __arm_wsr64("dbgbvr15_el1", debug_state->hw_bps[15].dbgbvr); in arm64_write_hw_breakpoint_by_index()
246 void arm64_write_hw_debug_regs(const arm64_debug_state_t* debug_state) { in arm64_write_hw_debug_regs() argument
249 arm64_write_hw_breakpoint_by_index(debug_state, i); in arm64_write_hw_debug_regs()