aboutsummaryrefslogtreecommitdiff
path: root/target-arm/nwfpe/fpa11.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-arm/nwfpe/fpa11.h')
-rw-r--r--target-arm/nwfpe/fpa11.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/target-arm/nwfpe/fpa11.h b/target-arm/nwfpe/fpa11.h
index 95ad119367..389c02986b 100644
--- a/target-arm/nwfpe/fpa11.h
+++ b/target-arm/nwfpe/fpa11.h
@@ -22,6 +22,10 @@
#ifndef __FPA11_H__
#define __FPA11_H__
+#include <stdlib.h>
+#include <stdio.h>
+#include <errno.h>
+
#define GET_FPA11() (qemufpa)
/*
@@ -87,8 +91,6 @@ extern void resetFPA11(void);
extern void SetRoundingMode(const unsigned int);
extern void SetRoundingPrecision(const unsigned int);
-#define get_user(x,y) ((x)=*(y))
-#define put_user(x,y) (*(y)=(x))
static inline unsigned int readRegister(unsigned int reg)
{
return (user_registers[(reg)]);
@@ -128,4 +130,7 @@ unsigned int ZF;
unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, unsigned int* qregs);
+/* included only for get_user/put_user macros */
+#include "qemu.h"
+
#endif