Skip to content

Commit

Permalink
Merge pull request riscv-non-isa#415 from ved-rivos/0829
Browse files Browse the repository at this point in the history
fix PTE addition to S-stage PT for S-stage permission test
  • Loading branch information
ved-rivos authored Aug 29, 2024
2 parents f4186be + 88d51f6 commit cb939c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iommu_ref_model/test/test_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ main(void) {
gva = gva | ((1 << (i * 9)) * PAGESIZE) | 2048;
req.tr.iova = gva;
pte.PPN = 512UL * 512UL * 512UL * 512UL;
pte_addr = add_s_stage_pte(DC.fsc.iosatp, gva, pte, i, DC.tc.SXL);
pte_addr = add_s_stage_pte(DC.fsc.iosatp, gva, pte, 4, DC.tc.SXL);
read_memory(pte_addr, 8, (char *)&pte);

pte.U = 1;
Expand Down

0 comments on commit cb939c4

Please sign in to comment.