diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-05-11 14:19:10 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-05-11 14:19:10 -0700 |
commit | bb05f5bc5c509e763108f954e23233ba946542ea (patch) | |
tree | fb26b77f8925a8730330fe667b7e29e294744222 /p/riscv_test.h | |
parent | 1416bad91ae5efca002e089fd08cdde6c47fc17f (diff) | |
download | env-bb05f5bc5c509e763108f954e23233ba946542ea.zip env-bb05f5bc5c509e763108f954e23233ba946542ea.tar.gz env-bb05f5bc5c509e763108f954e23233ba946542ea.tar.bz2 |
Initialize FCSR
Diffstat (limited to 'p/riscv_test.h')
-rw-r--r-- | p/riscv_test.h | 2 |
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); \ |