Skip to content

Commit

Permalink
Merge pull request #410 from ved-rivos/0824
Browse files Browse the repository at this point in the history
fix error in G-stage test
  • Loading branch information
ved-rivos authored Aug 24, 2024
2 parents 0f0ac97 + 312a3bc commit f4186be
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions iommu_ref_model/test/test_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,20 +1374,20 @@ main(void) {

// Test for walking past max levels
if ( i == 0 ) {
pte.X = 0;
pte.W = 0;
pte.R = 0;
write_memory((char *)&pte, pte_addr, 8);
iotinval(VMA, 0, 0, 0, 0, 0, 0);
gpte.X = 0;
gpte.W = 0;
gpte.R = 0;
write_memory((char *)&gpte, pte_addr, 8);
iotinval(GVMA, 0, 0, 0, 0, 0, 0);
iommu_translate_iova(&req, &rsp);
fail_if( ( rsp.status != SUCCESS ) );
fail_if( ( rsp.trsp.R != 0 ) );
fail_if( ( rsp.trsp.W != 0 ) );
pte.X = 1;
pte.W = 1;
pte.R = 1;
write_memory((char *)&pte, pte_addr, 8);
iotinval(VMA, 0, 0, 0, 0, 0, 0);
gpte.X = 1;
gpte.W = 1;
gpte.R = 1;
write_memory((char *)&gpte, pte_addr, 8);
iotinval(GVMA, 0, 0, 0, 0, 0, 0);
}
}
}
Expand Down

0 comments on commit f4186be

Please sign in to comment.