Lines Matching defs:hw_index
770 uint32_t hw_index = GetHardwareWatchpointHit(addr);
780 hw_index, (uint64_t)addr);
783 if (LoHi[i] != 0 && LoHi[i] == hw_index && LoHi[i] != i &&
794 if (hw_index != INVALID_NUB_HW_INDEX) {
796 m_watchpoint_hw_index = hw_index;
798 // Piggyback the hw_index in the exc.data.
799 exc.exc_data.push_back(hw_index);
1359 bool DNBArchMachARM64::ReenableHardwareWatchpoint(uint32_t hw_index) {
1363 if (hw_index < NumSupportedHardwareWatchpoints() && LoHi[hw_index]) {
1364 return ReenableHardwareWatchpoint_helper(hw_index) &&
1365 ReenableHardwareWatchpoint_helper(LoHi[hw_index]);
1367 return ReenableHardwareWatchpoint_helper(hw_index);
1371 bool DNBArchMachARM64::ReenableHardwareWatchpoint_helper(uint32_t hw_index) {
1377 if (hw_index >= num_hw_points)
1380 m_state.dbg.__wvr[hw_index] = m_disabled_watchpoints[hw_index].addr;
1381 m_state.dbg.__wcr[hw_index] = m_disabled_watchpoints[hw_index].control;
1387 hw_index, hw_index, (uint64_t)m_state.dbg.__wvr[hw_index],
1388 hw_index, (uint64_t)m_state.dbg.__wcr[hw_index]);
1395 bool DNBArchMachARM64::DisableHardwareWatchpoint(uint32_t hw_index,
1397 if (hw_index < NumSupportedHardwareWatchpoints() && LoHi[hw_index]) {
1398 return DisableHardwareWatchpoint_helper(hw_index, also_set_on_task) &&
1399 DisableHardwareWatchpoint_helper(LoHi[hw_index], also_set_on_task);
1401 return DisableHardwareWatchpoint_helper(hw_index, also_set_on_task);
1405 bool DNBArchMachARM64::DisableHardwareWatchpoint_helper(uint32_t hw_index,
1412 if (hw_index >= num_hw_points)
1415 m_disabled_watchpoints[hw_index].addr = m_state.dbg.__wvr[hw_index];
1416 m_disabled_watchpoints[hw_index].control = m_state.dbg.__wcr[hw_index];
1418 m_state.dbg.__wcr[hw_index] &= ~((nub_addr_t)WCR_ENABLE);
1422 hw_index, hw_index, (uint64_t)m_state.dbg.__wvr[hw_index],
1423 hw_index, (uint64_t)m_state.dbg.__wcr[hw_index]);
1430 bool DNBArchMachARM64::DisableHardwareBreakpoint(uint32_t hw_index,
1437 if (hw_index >= num_hw_points)
1440 m_disabled_breakpoints[hw_index].addr = m_state.dbg.__bvr[hw_index];
1441 m_disabled_breakpoints[hw_index].control = m_state.dbg.__bcr[hw_index];
1443 m_state.dbg.__bcr[hw_index] = 0;
1448 hw_index, hw_index, (uint64_t)m_state.dbg.__bvr[hw_index],
1449 hw_index, (uint64_t)m_state.dbg.__bcr[hw_index]);
1552 nub_addr_t DNBArchMachARM64::GetWatchpointAddressByIndex(uint32_t hw_index) {
1557 if (hw_index >= num)
1559 if (IsWatchpointEnabled(m_state.dbg, hw_index))
1560 return GetWatchAddress(m_state.dbg, hw_index);
1565 uint32_t hw_index) {
1571 return (debug_state.__wcr[hw_index] & 1u);
1575 uint32_t hw_index) {
1580 return bits(debug_state.__wvr[hw_index], 63, 0);