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/pk.h | |
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/pk.h')
-rw-r--r-- | pk/pk.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,6 +1,8 @@ #ifndef _PK_H #define _PK_H +#include <stdint.h> + typedef struct { long gpr[32]; @@ -12,6 +14,12 @@ typedef struct long insn; } trapframe_t; +typedef struct +{ + uint64_t fpr[32]; + uint32_t fsr; +} fp_state_t; + #define USER_MEM_SIZE 0x70000000 #define USER_MAINVARS_SIZE 0x1000 #define USER_START 0x10000 @@ -25,7 +33,7 @@ extern "C" { extern int have_fp; int emulate_fp(trapframe_t*); -void init_fpregs(); +void init_fp_regs(); void printk(const char* s, ...); void init_tf(trapframe_t*, long pc, long sp); |