aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-10-18 01:47:09 -0700
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-10-18 01:47:09 -0700
commit77c382ff239f61ee9846a7abb6d96a6434b52b56 (patch)
tree44be4c6cf17b74bd0d87c2498c5a781f9be11156 /pk/pk.h
parent68879a67d0f49323e1e2f8358d19bc1d94bb9f30 (diff)
downloadpk-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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/pk/pk.h b/pk/pk.h
index 65a92fc..4e3e687 100644
--- a/pk/pk.h
+++ b/pk/pk.h
@@ -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);