From fe27b9b1b25fbcaf23ab5dc80e827b712dc9f7b3 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 4 Apr 2015 15:20:18 -0700 Subject: [PATCH] Support writing sstatus.fs even without an FPU --- rocket/src/main/scala/csr.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocket/src/main/scala/csr.scala b/rocket/src/main/scala/csr.scala index 76f54775..8e0c875a 100644 --- a/rocket/src/main/scala/csr.scala +++ b/rocket/src/main/scala/csr.scala @@ -377,7 +377,7 @@ class CSRFile extends CoreModule reg_mstatus.ie := new_sstatus.ie reg_mstatus.ie1 := new_sstatus.pie reg_mstatus.prv1 := Mux(new_sstatus.ps, PRV_S, PRV_U) - if (!params(BuildFPU).isEmpty) reg_mstatus.fs := new_sstatus.fs + reg_mstatus.fs := new_sstatus.fs // even without an FPU if (!params(BuildRoCC).isEmpty) reg_mstatus.xs := new_sstatus.xs } when (decoded_addr(CSRs.sscratch)) { reg_sscratch := wdata }