Browse Source
Merge pull request #2088 from ved-rivos/issue_2078
PTE store in s2xlate should use the trap_type instead of type
pull/2091/head
Andrew Waterman
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
riscv/mmu.cc
|
|
|
@ -534,7 +534,7 @@ reg_t mmu_t::s2xlate(reg_t gva, reg_t gpa, access_type type, access_type trap_ty |
|
|
|
if ((pte & ad) != ad) { |
|
|
|
if (hade) { |
|
|
|
// set accessed and possibly dirty bits
|
|
|
|
pte_store(pte_paddr, pte | ad, gva, virt, type, vm.ptesize); |
|
|
|
pte_store(pte_paddr, pte | ad, gva, virt, trap_type, vm.ptesize); |
|
|
|
} else { |
|
|
|
// take exception if access or possibly dirty bit is not set.
|
|
|
|
break; |
|
|
|
|