summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-05-11 14:19:10 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-05-11 14:19:10 -0700
commitbb05f5bc5c509e763108f954e23233ba946542ea (patch)
treefb26b77f8925a8730330fe667b7e29e294744222
parent1416bad91ae5efca002e089fd08cdde6c47fc17f (diff)
downloadenv-bb05f5bc5c509e763108f954e23233ba946542ea.zip
env-bb05f5bc5c509e763108f954e23233ba946542ea.tar.gz
env-bb05f5bc5c509e763108f954e23233ba946542ea.tar.bz2
Initialize FCSR
-rw-r--r--p/riscv_test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index a3cb7c2..a94a404 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -87,7 +87,7 @@
andi a0, a0, 1 << ('D' - 'A'); /* test for D extension */ \
bnez a0, 1f; \
RVTEST_PASS; /* "pass" the test if FPU not present */ \
-1:
+1:csrwi fcsr, 0
#define RVTEST_VEC_ENABLE \
li a0, SSTATUS_XS & (SSTATUS_XS >> 1); \