From e30978a71921159aec38eeefd848fca4ed39a826 Mon Sep 17 00:00:00 2001 From: Daniel Lustig Date: Thu, 22 Jul 2021 18:02:17 -0400 Subject: Fix #352 (#353) Thanks to @pdonahue-ventana for pointing this out --- isa/rv64ssvnapot/napot.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'isa') diff --git a/isa/rv64ssvnapot/napot.S b/isa/rv64ssvnapot/napot.S index 3d62e6c..92d2b49 100644 --- a/isa/rv64ssvnapot/napot.S +++ b/isa/rv64ssvnapot/napot.S @@ -58,7 +58,7 @@ RVTEST_CODE_BEGIN la a0, page_table srl a0, a0, 12 sll a0, a0, PTE_PPN_SHIFT - li a1, PTE_V | PTE_U + li a1, PTE_V or a0, a0, a1 # Level 1 PTE address @@ -78,7 +78,7 @@ RVTEST_CODE_BEGIN add a0, a0, a1 srl a0, a0, 12 sll a0, a0, PTE_PPN_SHIFT - li a1, PTE_V | PTE_U + li a1, PTE_V or a0, a0, a1 # Level 2 PTE address -- cgit v1.1