Changeset 87346 in vbox for trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
- Timestamp:
- Jan 21, 2021 11:42:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r87345 r87346 1080 1080 { 1081 1081 pVCpu->cpum.s.Guest.dr[0] = uDr0; 1082 return CPUMRecalcHyperDRx(pVCpu, 0 , false);1082 return CPUMRecalcHyperDRx(pVCpu, 0); 1083 1083 } 1084 1084 … … 1087 1087 { 1088 1088 pVCpu->cpum.s.Guest.dr[1] = uDr1; 1089 return CPUMRecalcHyperDRx(pVCpu, 1 , false);1089 return CPUMRecalcHyperDRx(pVCpu, 1); 1090 1090 } 1091 1091 … … 1094 1094 { 1095 1095 pVCpu->cpum.s.Guest.dr[2] = uDr2; 1096 return CPUMRecalcHyperDRx(pVCpu, 2 , false);1096 return CPUMRecalcHyperDRx(pVCpu, 2); 1097 1097 } 1098 1098 … … 1101 1101 { 1102 1102 pVCpu->cpum.s.Guest.dr[3] = uDr3; 1103 return CPUMRecalcHyperDRx(pVCpu, 3 , false);1103 return CPUMRecalcHyperDRx(pVCpu, 3); 1104 1104 } 1105 1105 … … 1117 1117 pVCpu->cpum.s.Guest.dr[7] = uDr7; 1118 1118 pVCpu->cpum.s.Guest.fExtrn &= ~CPUMCTX_EXTRN_DR7; 1119 return CPUMRecalcHyperDRx(pVCpu, 7 , false);1119 return CPUMRecalcHyperDRx(pVCpu, 7); 1120 1120 } 1121 1121 … … 1128 1128 iReg += 2; 1129 1129 pVCpu->cpum.s.Guest.dr[iReg] = Value; 1130 return CPUMRecalcHyperDRx(pVCpu, iReg , false);1130 return CPUMRecalcHyperDRx(pVCpu, iReg); 1131 1131 } 1132 1132 … … 1159 1159 * @param iGstReg The guest debug register number that was modified. 1160 1160 * UINT8_MAX if not guest register. 1161 * @param fForceHyper Used in HM to force hyper registers because of single 1162 * stepping. 1163 */ 1164 VMMDECL(int) CPUMRecalcHyperDRx(PVMCPUCC pVCpu, uint8_t iGstReg, bool fForceHyper) 1161 */ 1162 VMMDECL(int) CPUMRecalcHyperDRx(PVMCPUCC pVCpu, uint8_t iGstReg) 1165 1163 { 1166 1164 PVM pVM = pVCpu->CTX_SUFF(pVM); … … 1187 1185 1188 1186 const RTGCUINTREG uDbgfDr7 = DBGFBpGetDR7(pVM); 1189 1190 /** @todo r=bird: I'm totally confused by fForceHyper! */ 1191 #ifdef IN_RING0 1192 if (!fForceHyper && (pVCpu->cpum.s.fUseFlags & CPUM_USED_DEBUG_REGS_HYPER)) 1193 fForceHyper = true; 1194 #endif 1195 if ((!fForceHyper ? uDbgfDr7 : (uGstDr7 | uDbgfDr7)) & X86_DR7_ENABLED_MASK) 1187 if ((uGstDr7 | uDbgfDr7) & X86_DR7_ENABLED_MASK) 1196 1188 { 1197 1189 Assert(!CPUMIsGuestDebugStateActive(pVCpu));
Note:
See TracChangeset
for help on using the changeset viewer.