Changeset 108430 in vbox for trunk/src/VBox/VMM/VMMAll/GICAll.cpp
- Timestamp:
- Mar 4, 2025 8:42:26 AM (7 weeks ago)
- svn:sync-xref-src-repo-rev:
- 167804
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/GICAll.cpp
r108429 r108430 1161 1161 { 1162 1162 /* When affinity routing is disabled, reads return 0. */ 1163 Assert(pGicDev->fAffRoutingEnabled); 1163 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1164 1164 uint16_t const idxPriority = idxReg * sizeof(uint32_t); 1165 1165 AssertReturn(idxPriority < RT_ELEMENTS(pGicCpu->abIntrPriority) - sizeof(uint32_t), VERR_BUFFER_OVERFLOW); … … 1183 1183 { 1184 1184 /* When affinity routing is disabled, writes are ignored. */ 1185 Assert(pGicDev->fAffRoutingEnabled); 1185 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1186 1186 PGICCPU pGicCpu = VMCPU_TO_GICCPU(pVCpu); 1187 1187 uint16_t const idxPriority = idxReg * sizeof(uint32_t); … … 1208 1208 { 1209 1209 /* When affinity routing is disabled, reads return 0. */ 1210 Assert(pGicDev->fAffRoutingEnabled); 1210 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1211 1211 Assert(idxReg < RT_ELEMENTS(pGicCpu->bmIntrPending)); 1212 1212 *puValue = pGicCpu->bmIntrPending[idxReg]; … … 1271 1271 static VBOXSTRICTRC gicReDistReadIntrEnableReg(PCGICDEV pGicDev, PGICCPU pGicCpu, uint16_t idxReg, uint32_t *puValue) 1272 1272 { 1273 Assert(pGicDev->fAffRoutingEnabled); 1273 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1274 1274 Assert(idxReg < RT_ELEMENTS(pGicCpu->bmIntrEnabled)); 1275 1275 *puValue = pGicCpu->bmIntrEnabled[idxReg]; … … 1387 1387 { 1388 1388 /* When affinity routing is disabled, reads return 0. */ 1389 Assert(pGicDev->fAffRoutingEnabled); 1389 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1390 1390 if (idxReg > 0) 1391 1391 { … … 1415 1415 { 1416 1416 /* When affinity routing is disabled, writes are ignored. */ 1417 Assert(pGicDev->fAffRoutingEnabled); 1417 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1418 1418 PGICCPU pGicCpu = VMCPU_TO_GICCPU(pVCpu); 1419 1419 if (idxReg > 0) … … 1445 1445 { 1446 1446 /* When affinity routing is disabled, reads return 0. */ 1447 Assert(pGicDev->fAffRoutingEnabled); 1447 Assert(pGicDev->fAffRoutingEnabled); RT_NOREF(pGicDev); 1448 1448 Assert(idxReg < RT_ELEMENTS(pGicCpu->bmIntrGroup)); 1449 1449 *puValue = pGicCpu->bmIntrGroup[idxReg]; … … 1983 1983 DECLINLINE(VBOXSTRICTRC) gicDistReadRegister(PPDMDEVINS pDevIns, PVMCPUCC pVCpu, uint16_t offReg, uint32_t *puValue) 1984 1984 { 1985 VMCPU_ASSERT_EMT(pVCpu); 1985 VMCPU_ASSERT_EMT(pVCpu); RT_NOREF(pVCpu); 1986 1986 PGICDEV pGicDev = PDMDEVINS_2_DATA(pDevIns, PGICDEV); 1987 1987 uint16_t const cbReg = sizeof(uint32_t); … … 2283 2283 DECLINLINE(VBOXSTRICTRC) gicDistWriteRegister(PPDMDEVINS pDevIns, PVMCPUCC pVCpu, uint16_t offReg, uint32_t uValue) 2284 2284 { 2285 VMCPU_ASSERT_EMT(pVCpu); 2285 VMCPU_ASSERT_EMT(pVCpu); RT_NOREF(pVCpu); 2286 2286 PGICDEV pGicDev = PDMDEVINS_2_DATA(pDevIns, PGICDEV); 2287 2287 PVMCC pVM = PDMDevHlpGetVM(pDevIns);
Note:
See TracChangeset
for help on using the changeset viewer.