aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-03-05 16:40:06 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-03-05 16:40:06 -0800
commitf5a96732cb81571a3ba6b081b8556187d564f678 (patch)
tree4fa558058f6315f298d98ec18880dbcf9d8e3af8
parent33ed6c6c5e28f016bcfa341479ce97bf80d7d104 (diff)
downloadriscv-pk-f5a96732cb81571a3ba6b081b8556187d564f678.zip
riscv-pk-f5a96732cb81571a3ba6b081b8556187d564f678.tar.gz
riscv-pk-f5a96732cb81571a3ba6b081b8556187d564f678.tar.bz2
Fix ifdef guard on FCSR instructions
-rw-r--r--pk/emulation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/emulation.c b/pk/emulation.c
index c454962..5a66997 100644
--- a/pk/emulation.c
+++ b/pk/emulation.c
@@ -274,7 +274,7 @@ static inline int emulate_write_csr(int num, uintptr_t value, uintptr_t mstatus)
{
switch (num)
{
-#ifndef PK_ENABLE_FP_EMULATION
+#ifdef PK_ENABLE_FP_EMULATION
case CSR_FRM: SET_FRM(value); return 0;
case CSR_FFLAGS: SET_FFLAGS(value); return 0;
case CSR_FCSR: SET_FCSR(value); return 0;