Skip to content

Commit

Permalink
Merge pull request riscv-non-isa#365 from ved-rivos/0627_1
Browse files Browse the repository at this point in the history
add missing size validation
  • Loading branch information
ved-rivos authored Jun 27, 2024
2 parents cefe498 + 2a66e75 commit 148dfe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iommu_ref_model/libiommu/src/iommu_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ reset_iommu(uint8_t num_hpm, uint8_t hpmctr_bits, uint16_t eventID_mask,
g_offset_to_size[i] = 0xFF;

g_offset_to_size[CAPABILITIES_OFFSET] = 8;
g_offset_to_size[CAPABILITIES_OFFSET + 4] = 8;
g_offset_to_size[FCTRL_OFFSET] = 4;
g_offset_to_size[DDTP_OFFSET] = 8;
g_offset_to_size[DDTP_OFFSET + 4] = 8;
Expand Down

0 comments on commit 148dfe1

Please sign in to comment.