Skip to content

Commit

Permalink
Merge pull request #449 from ved-rivos/1119
Browse files Browse the repository at this point in the history
Fix iohgatp mode check
  • Loading branch information
ved-rivos authored Nov 19, 2024
2 parents 9738720 + 26a2fe4 commit f50a4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iommu_ref_model/libiommu/src/iommu_device_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ do_device_context_configuration_checks(
}
//13. `DC.iohgatp.MODE` encoding is not a valid encoding as determined
// by <<IOHGATP_MODE_ENC>>
if ( (DC->tc.PDTV == 0) && (g_reg_file.fctl.gxl == 0) &&
if ( (g_reg_file.fctl.gxl == 0) &&
(DC->iohgatp.MODE != IOHGATP_Bare) &&
(DC->iohgatp.MODE != IOHGATP_Sv39x4) &&
(DC->iohgatp.MODE != IOHGATP_Sv48x4) &&
(DC->iohgatp.MODE != IOHGATP_Sv57x4) ) {
return 1;
}
if ( (DC->tc.PDTV == 0) && (g_reg_file.fctl.gxl == 1) &&
if ( (g_reg_file.fctl.gxl == 1) &&
(DC->iohgatp.MODE != IOHGATP_Bare) &&
(DC->iohgatp.MODE != IOHGATP_Sv32x4) ) {
return 1;
Expand Down

0 comments on commit f50a4e3

Please sign in to comment.