summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu/patches/patch-af')
-rw-r--r--emulators/qemu/patches/patch-af31
1 files changed, 13 insertions, 18 deletions
diff --git a/emulators/qemu/patches/patch-af b/emulators/qemu/patches/patch-af
index 1d8644fdbb9..07a798188b7 100644
--- a/emulators/qemu/patches/patch-af
+++ b/emulators/qemu/patches/patch-af
@@ -1,7 +1,7 @@
-$NetBSD: patch-af,v 1.2 2004/12/14 01:02:19 dbj Exp $
+$NetBSD: patch-af,v 1.3 2005/05/03 11:18:47 xtraeme Exp $
---- dyngen-exec.h.orig Sun Nov 14 15:51:33 2004
-+++ dyngen-exec.h
+--- dyngen-exec.h.orig 2005-04-28 22:23:53.000000000 +0200
++++ dyngen-exec.h 2005-04-28 22:25:30.000000000 +0200
@@ -23,7 +23,9 @@
/* NOTE: standard headers should be used with special care at this
point because host CPU registers are used as global variables. Some
@@ -12,34 +12,29 @@ $NetBSD: patch-af,v 1.2 2004/12/14 01:02:19 dbj Exp $
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
-@@ -43,7 +45,7 @@ typedef signed long int64_t;
- #else
+@@ -44,6 +46,7 @@
typedef signed long long int64_t;
#endif
--
+
+/*
#define INT8_MIN (-128)
#define INT16_MIN (-32767-1)
#define INT32_MIN (-2147483647-1)
-@@ -56,8 +58,12 @@ typedef signed long long int64_t;
+@@ -56,12 +59,17 @@
#define UINT16_MAX (65535)
#define UINT32_MAX (4294967295U)
#define UINT64_MAX ((uint64_t)(18446744073709551615))
--
+*/
+
+#ifdef __NetBSD__
-+typedef struct __sFILE FILE;
++typedef struct __sFILE FILE;
+#else
typedef struct FILE FILE;
-+#endif
extern int fprintf(FILE *, const char *, ...);
extern int printf(const char *, ...);
#undef NULL
-@@ -70,6 +76,7 @@ extern int printf(const char *, ...);
- #define FE_UPWARD FP_RP
- #define FE_TOWARDZERO FP_RZ
- #define fesetround(x) fpsetround(x)
-+#define fegetround() fpgetround()
- #else
- #include <fenv.h>
- #endif
+ #define NULL 0
++#endif
+
+ #ifdef __i386__
+ #define AREG0 "ebp"