Changeset 86132 in vbox for trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp
- Timestamp:
- Sep 16, 2020 7:52:40 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp
r86131 r86132 1988 1988 1989 1989 RTGCPHYS const GCPhysDevTab = pThis->aDevTabBaseAddrs[idxSeg].n.u40Base << X86_PAGE_4K_SHIFT; 1990 uint16_t const offDte = (uDevId & ~g_auDevTabSegMasks[idxSegsEn]) << IOMMU_DTE_SIZE_SHIFT;1990 uint16_t const offDte = (uDevId & ~g_auDevTabSegMasks[idxSegsEn]) * sizeof(DTE_T); 1991 1991 RTGCPHYS const GCPhysDte = GCPhysDevTab + offDte; 1992 1992 … … 2473 2473 RTGCPHYS const GCPhysIntrTable = pDte->au64[2] & IOMMU_DTE_IRTE_ROOT_PTR_MASK; 2474 2474 uint16_t const cbIntrTable = IOMMU_GET_INTR_TAB_LEN(pDte); 2475 uint16_t const offIrte = (uDataIn & IOMMU_MSI_DATA_IRTE_OFFSET_MASK) << IOMMU_IRTE_SIZE_SHIFT;2475 uint16_t const offIrte = (uDataIn & IOMMU_MSI_DATA_IRTE_OFFSET_MASK) * sizeof(IRTE_T); 2476 2476 RTGCPHYS const GCPhysIrte = GCPhysIntrTable + offIrte; 2477 2477
Note:
See TracChangeset
for help on using the changeset viewer.