Skip to content

Commit

Permalink
Fix iohgatp mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Nov 19, 2024
1 parent 9738720 commit 26a2fe4
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 26a2fe4

Please sign in to comment.