From: Andrew Waterman Date: Tue, 21 Mar 2017 23:47:04 +0000 (-0700) Subject: Allow supervisor access to user pages in dirty-bit test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2bd84a096a97ff4b8f41035c984991d0df922c1;p=riscv-tests.git Allow supervisor access to user pages in dirty-bit test --- diff --git a/isa/rv64si/dirty.S b/isa/rv64si/dirty.S index e3a7987..06c9780 100644 --- a/isa/rv64si/dirty.S +++ b/isa/rv64si/dirty.S @@ -23,7 +23,7 @@ RVTEST_CODE_BEGIN or a2, a2, a0 csrw sptbr, a1 sfence.vma - li a1, (MSTATUS_MPP & ~(MSTATUS_MPP<<1)) * PRV_S + li a1, ((MSTATUS_MPP & ~(MSTATUS_MPP<<1)) * PRV_S) | MSTATUS_SUM csrs mstatus, a1 la a1, 1f - DRAM_BASE csrw mepc, a1