From c1dc7932b5ad3fe1f7a67f167b202c9019714466 Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Mon, 27 Aug 2018 14:44:19 +0800 Subject: riscv: don't write to mstatus.XS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit XS is a read-only field of mstatus. Unable to be write. So remove this code. Change-Id: I3ad6b0029900124ac7cce062e668a0ea5a8b2c0e Signed-off-by: Xiang Wang Reviewed-on: https://review.coreboot.org/28357 Reviewed-by: Jonathan Neuschäfer Reviewed-by: Philipp Hug Tested-by: build bot (Jenkins) --- src/arch/riscv/virtual_memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/arch/riscv/virtual_memory.c b/src/arch/riscv/virtual_memory.c index 5b35e811d9..d9bae2aac3 100644 --- a/src/arch/riscv/virtual_memory.c +++ b/src/arch/riscv/virtual_memory.c @@ -43,7 +43,6 @@ void mstatus_init(void) uintptr_t ms = 0; ms = INSERT_FIELD(ms, MSTATUS_FS, 3); - ms = INSERT_FIELD(ms, MSTATUS_XS, 3); write_csr(mstatus, ms); // clear any pending timer interrupts. -- cgit v1.2.3