Use mstatus.MPP to check existence of U-mode
authorAndrew Waterman <andrew@sifive.com>
Fri, 10 Nov 2017 01:12:49 +0000 (17:12 -0800)
committerAndrew Waterman <andrew@sifive.com>
Fri, 10 Nov 2017 03:26:41 +0000 (19:26 -0800)
commit652ec8c0c98bfc64bbc8d036d89c61066aebee91
treec7dad126543ec4a9b8f5159f9dedda7977a6f9b8
parent6f7ebb610d6bb8817a9592cc06a7d108381f1761
Use mstatus.MPP to check existence of U-mode

misa is allowed to be hardwired to 0, so checking its U bit could
incorrectly suggest that U-mode is not supported.
isa/rv64si/csr.S