aboutsummaryrefslogtreecommitdiff
path: root/pk/handlers.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2012-09-04 23:23:08 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2012-09-04 23:23:08 -0700
commit6336ef155fabdd15eecf11949b7e13a49e279738 (patch)
tree51942c7d0f74fb30bf9dd477b5b995568e69194b /pk/handlers.c
parent6941d5f6b0929517a1bfc410b2a97ff0574716a4 (diff)
downloadriscv-pk-6336ef155fabdd15eecf11949b7e13a49e279738.zip
riscv-pk-6336ef155fabdd15eecf11949b7e13a49e279738.tar.gz
riscv-pk-6336ef155fabdd15eecf11949b7e13a49e279738.tar.bz2
fix FP emulation routines
to disable, add --disable-fp-emulation to configure command line
Diffstat (limited to 'pk/handlers.c')
-rw-r--r--pk/handlers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pk/handlers.c b/pk/handlers.c
index da2f915..817f14d 100644
--- a/pk/handlers.c
+++ b/pk/handlers.c
@@ -1,5 +1,6 @@
#include "pcr.h"
#include "pk.h"
+#include "config.h"
int have_fp = 1; // initialized to 1 because it can't be in the .bss section!
int have_vector = 1;
@@ -33,8 +34,6 @@ static void handle_privileged_instruction(trapframe_t* tf)
static void handle_illegal_instruction(trapframe_t* tf)
{
#ifdef PK_ENABLE_FP_EMULATION
- irq_enable();
-
if(emulate_fp(tf) == 0)
{
advance_pc(tf);