summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-10-10 14:22:49 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-12-19 05:46:07 +0000
commitf3d8580cce06608685e1389f4863acf24c452278 (patch)
treeaa465b06b574e9fdf4b599aaa147ce4dc00702cf /src/arch
parentc9add1462957dd1b1f28c3ed7d3755073bf297df (diff)
arch/riscv: Don't set FPU state to "dirty"
Quoting from the RISC-V Privileged Architecture manual version 1.10, chapter 3.1.11: The FS and XS fields use the same status encoding as shown in Table 3.3, with the four possible status values being Off, Initial, Clean, and Dirty. Status FS Meaning XS Meaning 0 Off All off 1 Initial None dirty of clean, some on 2 Clean None dirty, some clean 3 Dirty Some dirty Change-Id: If0225044ed52215ce64ea979d120014e02d4ce37 Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/c/28987 Reviewed-by: Philipp Hug <philipp@hug.cx> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/riscv/virtual_memory.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/arch/riscv/virtual_memory.c b/src/arch/riscv/virtual_memory.c
index 0061847c01..2f13ecb398 100644
--- a/src/arch/riscv/virtual_memory.c
+++ b/src/arch/riscv/virtual_memory.c
@@ -40,11 +40,6 @@ static int delegate = 0
void mstatus_init(void)
{
- uintptr_t ms = 0;
-
- ms = INSERT_FIELD(ms, MSTATUS_FS, 3);
- write_csr(mstatus, ms);
-
// clear any pending timer interrupts.
clear_csr(mip, MIP_STIP | MIP_SSIP);