- Timestamp:
- Mar 31, 2021 7:02:46 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r88328 r88329 405 405 static const uint8_t *g_apbRw1cMasks[] = { (uint8_t *)&g_au32Rw1cMasks0[0], (uint8_t *)&g_au32Rw1cMasks1[0] }; 406 406 407 /* Masks arrays must be identical in size (even bounds checking code assumes this). */ 408 AssertCompile(sizeof(g_apbRw1cMasks) == sizeof(g_apbRwMasks)); 409 407 410 408 411 #ifndef VBOX_DEVICE_STRUCT_TESTCASE … … 414 417 * @param pThis The shared IOMMU device state. 415 418 * @param offReg The MMIO offset of the register. 416 * @param cbReg The size of the access being made. 419 * @param cbReg The size of the access being made (for bounds checking on 420 * debug builds). 417 421 * @param pIdxGroup Where to store the index of the register group the register 418 422 * belongs to. … … 475 479 uint8_t idxGroup; 476 480 uint8_t const *pabRegs = iommuIntelRegGetGroup(pThis, offReg, sizeof(uint64_t), &idxGroup); 481 Assert(idxGroup < RT_ELEMENTS(g_apbRwMasks)); 477 482 uint8_t const *pabRwMasks = g_apbRwMasks[idxGroup]; 478 483 uint8_t const *pabRw1cMasks = g_apbRw1cMasks[idxGroup]; … … 496 501 uint8_t idxGroup; 497 502 uint8_t const *pabRegs = iommuIntelRegGetGroup(pThis, offReg, sizeof(uint32_t), &idxGroup); 503 Assert(idxGroup < RT_ELEMENTS(g_apbRwMasks)); 498 504 uint8_t const *pabRwMasks = g_apbRwMasks[idxGroup]; 499 505 uint8_t const *pabRw1cMasks = g_apbRw1cMasks[idxGroup];
Note:
See TracChangeset
for help on using the changeset viewer.