Skip to content

Commit

Permalink
Merge pull request #417 from ved-rivos/0829_1
Browse files Browse the repository at this point in the history
fix iotinval.vma test
  • Loading branch information
ved-rivos authored Aug 29, 2024
2 parents cb939c4 + 98f16f9 commit 962da37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iommu_ref_model/test/test_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ main(void) {
req.tr.length = 64;
req.tr.read_writeAMO = READ;

for ( int g = 0; g < 1; g++ ) {
for ( int g = 0; g < 2; g++ ) {
pte.G = g;
// AV=0, PSCV=0
// Fill TLB
Expand Down Expand Up @@ -1943,8 +1943,8 @@ main(void) {
fail_if( ( g == 0 && check_rsp_and_faults(&req, &rsp, UNSUPPORTED_REQUEST, 13, 0) < 0 ) );
if ( g == 1) {
// Inv TLB - by address - flush globals
// AV=1, PSCV=1
iotinval(VMA, 0, 1, 1, 1, 10, req.tr.iova);
// AV=1, PSCV=0
iotinval(VMA, 0, 1, 0, 1, 10, req.tr.iova);
// Check fault observed - invalidate success
iommu_translate_iova(&req, &rsp);
fail_if( ( check_rsp_and_faults(&req, &rsp, UNSUPPORTED_REQUEST, 13, 0) < 0 ) );
Expand Down

0 comments on commit 962da37

Please sign in to comment.