diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-10-18 01:47:09 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-10-18 01:47:09 -0700 |
commit | 77c382ff239f61ee9846a7abb6d96a6434b52b56 (patch) | |
tree | 44be4c6cf17b74bd0d87c2498c5a781f9be11156 /pk/handlers.c | |
parent | 68879a67d0f49323e1e2f8358d19bc1d94bb9f30 (diff) | |
download | pk-77c382ff239f61ee9846a7abb6d96a6434b52b56.zip pk-77c382ff239f61ee9846a7abb6d96a6434b52b56.tar.gz pk-77c382ff239f61ee9846a7abb6d96a6434b52b56.tar.bz2 |
[pk] improved performance of fp emulation
Diffstat (limited to 'pk/handlers.c')
-rw-r--r-- | pk/handlers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pk/handlers.c b/pk/handlers.c index 7eee536..25005c8 100644 --- a/pk/handlers.c +++ b/pk/handlers.c @@ -13,7 +13,10 @@ void handle_breakpoint(trapframe_t* tf) void handle_fp_disabled(trapframe_t* tf) { if(have_fp) + { + init_fp_regs(); tf->sr |= SR_EF; + } else { if(emulate_fp(tf) != 0) |