From f5a96732cb81571a3ba6b081b8556187d564f678 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 5 Mar 2016 16:40:06 -0800 Subject: Fix ifdef guard on FCSR instructions --- pk/emulation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1