1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test VM referenced and dirty bits.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 # Turn on VM with superpage identity mapping
20 li a1, ((MSTATUS_VM & ~(MSTATUS_VM<<1)) * VM_SV43) | ((MSTATUS_PRV1 & ~(MSTATUS_PRV1<<1)) * PRV_S)
27 # Try a faulting store to make sure dirty bit is not set
38 # Try a non-faulting store to make sure dirty bit is set
41 # Make sure R and D bits are set
55 # Make sure R bit is set
61 # Make sure D bit is clear
77 page_table_1: .dword PTE_TYPE_US_SRX
80 page_table_2: .dword PTE_TYPE_US_SRWX