From da2b82c640d9e787411843af867153d1ccf6b7d0 Mon Sep 17 00:00:00 2001 From: Ved Shanbhogue Date: Wed, 27 Dec 2023 08:38:33 -0600 Subject: [PATCH 1/2] fix incorrect bitfield size --- iommu_ref_model/libiommu/include/iommu_data_structures.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iommu_ref_model/libiommu/include/iommu_data_structures.h b/iommu_ref_model/libiommu/include/iommu_data_structures.h index 07d6399a..dfc7b47c 100644 --- a/iommu_ref_model/libiommu/include/iommu_data_structures.h +++ b/iommu_ref_model/libiommu/include/iommu_data_structures.h @@ -237,7 +237,7 @@ typedef union { typedef union { struct { uint64_t PPN:44; - uint64_t reserved:15; + uint64_t reserved:16; uint64_t MODE:4; }; uint64_t raw; From ab1d006aa9ae4cd7602440b0b4a2f895592ed9f2 Mon Sep 17 00:00:00 2001 From: Ved Shanbhogue Date: Wed, 27 Dec 2023 08:54:25 -0600 Subject: [PATCH 2/2] fix incorrect bitfield size --- iommu_ref_model/libiommu/include/iommu_translate.h | 1 + 1 file changed, 1 insertion(+) diff --git a/iommu_ref_model/libiommu/include/iommu_translate.h b/iommu_ref_model/libiommu/include/iommu_translate.h index f5f8e398..802aa8ad 100644 --- a/iommu_ref_model/libiommu/include/iommu_translate.h +++ b/iommu_ref_model/libiommu/include/iommu_translate.h @@ -58,6 +58,7 @@ typedef union { struct { uint64_t V:1; uint64_t M:2; + uint64_t reserved0:7; uint64_t PPN:44; uint64_t reserved:9; uint64_t C:1;