Changeset 88224 in vbox
- Timestamp:
- Mar 22, 2021 6:19:50 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143411
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r88222 r88224 342 342 343 343 /** Array of RW masks for all register groups. */ 344 static const uint8_t *g_ pabRwMasks[] = { (uint8_t *)&g_au32RwMasks0[0], (uint8_t *)&g_au32RwMasks1[0] };344 static const uint8_t *g_apbRwMasks[] = { (uint8_t *)&g_au32RwMasks0[0], (uint8_t *)&g_au32RwMasks1[0] }; 345 345 346 346 /** Array of RW1C masks for all register groups. */ 347 static const uint8_t *g_ pabRw1cMasks[] = { (uint8_t *)&g_au32Rw1cMasks0[0], (uint8_t *)&g_au32Rw1cMasks1[0] };347 static const uint8_t *g_apbRw1cMasks[] = { (uint8_t *)&g_au32Rw1cMasks0[0], (uint8_t *)&g_au32Rw1cMasks1[0] }; 348 348 349 349 350 350 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 351 351 352 static uint8_t *iommuIntelRegGetGroup(PIOMMU pThis, uint16_t offReg, uint8_t cbReg, uint8_t *pIdxGroup)352 DECLINLINE(uint8_t *) iommuIntelRegGetGroup(PIOMMU pThis, uint16_t offReg, uint8_t cbReg, uint8_t *pIdxGroup) 353 353 { 354 354 AssertCompile(VTD_MMIO_GROUP_0_OFF_FIRST == 0); … … 385 385 uint8_t idxGroup; 386 386 uint8_t const *pabRegs = iommuIntelRegGetGroup(pThis, offReg, sizeof(uint64_t), &idxGroup); 387 uint8_t const *pabRwMasks = g_ pabRwMasks[idxGroup];388 uint8_t const *pabRw1cMasks = g_ pabRw1cMasks[idxGroup];387 uint8_t const *pabRwMasks = g_apbRwMasks[idxGroup]; 388 uint8_t const *pabRw1cMasks = g_apbRw1cMasks[idxGroup]; 389 389 *puReg = *(uint64_t *)(pabRegs + offReg); 390 390 *pfRwMask = *(uint64_t *)(pabRwMasks + offReg); … … 397 397 uint8_t idxGroup; 398 398 uint8_t const *pabRegs = iommuIntelRegGetGroup(pThis, offReg, sizeof(uint32_t), &idxGroup); 399 uint8_t const *pabRwMasks = g_ pabRwMasks[idxGroup];400 uint8_t const *pabRw1cMasks = g_ pabRw1cMasks[idxGroup];399 uint8_t const *pabRwMasks = g_apbRwMasks[idxGroup]; 400 uint8_t const *pabRw1cMasks = g_apbRw1cMasks[idxGroup]; 401 401 *puReg = *(uint32_t *)(pabRegs + offReg); 402 402 *pfRwMask = *(uint32_t *)(pabRwMasks + offReg); … … 452 452 453 453 454 static uint 64_t iommuIntelRegRead32(PIOMMU pThis, uint16_t offReg)454 static uint32_t iommuIntelRegRead32(PIOMMU pThis, uint16_t offReg) 455 455 { 456 456 uint32_t uCurReg;
Note:
See TracChangeset
for help on using the changeset viewer.