Skip to content

Commit

Permalink
Merge pull request riscv-non-isa#290 from ved-rivos/issue_289
Browse files Browse the repository at this point in the history
Fix issue 289
  • Loading branch information
ved-rivos authored Apr 12, 2024
2 parents a9a6967 + 033e98e commit 9fdfa0a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions iommu_ref_model/libiommu/src/iommu_translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ iommu_translate_iova(
// * Write/AMO guest-page fault (cause = 23)
// * PDT entry not valid (cause = 266)
// * MSI PTE not valid (cause = 262)
if ( (cause = 12) || (cause == 13) || (cause == 15) || (cause == 20) || (cause == 21) ||
if ( (cause == 12) || (cause == 13) || (cause == 15) || (cause == 20) || (cause == 21) ||
(cause == 23) || (cause == 266) || (cause == 262) ) {
// Return response with R=W=0. The rest of the field are undefined. The reference
// model sets them to 0.
Expand All @@ -566,6 +566,4 @@ iommu_translate_iova(
page_sz = PAGESIZE;
goto step_20;
}
*((char *)0) = 0; // unexpected cause
return;
}

0 comments on commit 9fdfa0a

Please sign in to comment.