From cfd4930cb69f3e3648c19ce6b792c2545bc8afb2 Mon Sep 17 00:00:00 2001 From: Ved Shanbhogue Date: Thu, 25 Sep 2025 19:13:14 -0500 Subject: [PATCH] PTE store in s2xlate should use the trap_type instead of type --- riscv/mmu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/mmu.cc b/riscv/mmu.cc index e95b5755..4eb8f51a 100644 --- a/riscv/mmu.cc +++ b/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;