Changeset 83989 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 27, 2020 8:53:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp
r83988 r83989 2793 2793 case IOMMU_MMIO_OFF_PPR_EVT_B_BAR: uReg = pThis->EvtLogBBaseAddr.u64; break; 2794 2794 2795 case IOMMU_MMIO_OFF_DEV_TAB_SEG_FIRST: 2796 case IOMMU_MMIO_OFF_DEV_TAB_SEG_LAST: 2795 case IOMMU_MMIO_OFF_DEV_TAB_SEG_1: 2796 case IOMMU_MMIO_OFF_DEV_TAB_SEG_2: 2797 case IOMMU_MMIO_OFF_DEV_TAB_SEG_3: 2798 case IOMMU_MMIO_OFF_DEV_TAB_SEG_4: 2799 case IOMMU_MMIO_OFF_DEV_TAB_SEG_5: 2800 case IOMMU_MMIO_OFF_DEV_TAB_SEG_6: 2801 case IOMMU_MMIO_OFF_DEV_TAB_SEG_7: 2797 2802 { 2798 2803 uint8_t const offDevTabSeg = (off - IOMMU_MMIO_OFF_DEV_TAB_SEG_FIRST) >> 3; … … 2935 2940 RTGCPHYS const GCPhysDevTabEntry = GCPhysDevTab + offDevTabEntry; 2936 2941 2942 Assert(!(GCPhysDevTab & X86_PAGE_4K_OFFSET_MASK)); 2937 2943 int rc = PDMDevHlpPCIPhysRead(pDevIns, GCPhysDevTabEntry, pDevTabEntry, sizeof(*pDevTabEntry)); 2938 2944 if (RT_FAILURE(rc)) … … 3728 3734 pThis->ExtFeat.n.u5MaxPasidSup = 0; /* Requires GstTranslateSup. */ 3729 3735 pThis->ExtFeat.n.u1UserSupervisorSup = 0; 3730 AssertCompile(IOMMU_MAX_DEV_TAB_SEGMENTS < RT_ELEMENTS(g_acDevTabSegs));3736 AssertCompile(IOMMU_MAX_DEV_TAB_SEGMENTS <= 3); 3731 3737 pThis->ExtFeat.n.u2DevTabSegSup = IOMMU_MAX_DEV_TAB_SEGMENTS; 3732 3738 pThis->ExtFeat.n.u1PprLogOverflowWarn = 0;
Note:
See TracChangeset
for help on using the changeset viewer.