Skip to content

Commit

Permalink
Merge pull request riscv-non-isa#433 from ved-rivos/0927
Browse files Browse the repository at this point in the history
Remove additional pa size check
  • Loading branch information
ved-rivos authored Sep 27, 2024
2 parents 97f18bb + c07f9a1 commit c93cb6d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion iommu_ref_model/libiommu/src/iommu_second_stage_trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ second_stage_address_translation(
// No faults are caused here - the denied permissions will be reported back in
// the ATS completion
// Implicit accesses dont check permission against original access type
if ( (gpte->PPN * PAGESIZE) & ~pa_mask ) return GST_ACCESS_FAULT;
if ( check_access_perms == 1 ) {
if ( is_exec && (gpte->X == 0) ) return GST_PAGE_FAULT;
if ( is_read && (gpte->R == 0) ) return GST_PAGE_FAULT;
Expand Down

0 comments on commit c93cb6d

Please sign in to comment.