riscv-non-isa / riscv-iommu

RISC-V IOMMU Specification
https://jira.riscv.org/browse/RVG-55
Creative Commons Attribution 4.0 International
76 stars 15 forks source link

the reserved bit width should be 16 #275

Closed baimengwei closed 7 months ago

baimengwei commented 7 months ago

https://github.com/riscv-non-isa/riscv-iommu/blob/main/iommu_ref_model/libiommu/include/iommu_data_structures.h#L240

typedef union {
    struct {
        uint64_t PPN:44; 
        uint64_t reserved:15; 
        uint64_t MODE:4; 
    };
    uint64_t raw;
} msiptp_t;

the total width should be 64.

ved-rivos commented 7 months ago

Thanks for reporting this @baimengwei . It is fixed in PR #276

baimengwei commented 7 months ago

Thanks.