2feda3c1f5
o see http://qemu.org/changelog.html for details o see README.OpenBSD for an intro to qemu on OpenBSD o disable broken arm host support for now
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
$OpenBSD: patch-dyngen-exec_h,v 1.6 2008/04/28 22:52:38 todd Exp $
|
|
--- dyngen-exec.h.orig Sun Jan 6 14:38:42 2008
|
|
+++ dyngen-exec.h Tue Apr 1 01:40:00 2008
|
|
@@ -27,11 +27,15 @@
|
|
#define _FILEDEFED
|
|
#endif
|
|
|
|
+#include "config.h"
|
|
+
|
|
/* NOTE: standard headers should be used with special care at this
|
|
point because host CPU registers are used as global variables. Some
|
|
host headers do not allow that. */
|
|
#include <stddef.h>
|
|
-
|
|
+#ifdef _BSD
|
|
+#include <sys/types.h>
|
|
+#else
|
|
typedef unsigned char uint8_t;
|
|
typedef unsigned short uint16_t;
|
|
typedef unsigned int uint32_t;
|
|
@@ -61,6 +65,7 @@ typedef signed long int64_t;
|
|
typedef signed long long int64_t;
|
|
#endif
|
|
#endif
|
|
+#endif
|
|
|
|
/* XXX: This may be wrong for 64-bit ILP32 hosts. */
|
|
typedef void * host_reg_t;
|
|
@@ -82,12 +87,12 @@ typedef void * host_reg_t;
|
|
typedef struct __sFILE FILE;
|
|
#else
|
|
typedef struct FILE FILE;
|
|
-#endif
|
|
extern int fprintf(FILE *, const char *, ...);
|
|
extern int fputs(const char *, FILE *);
|
|
extern int printf(const char *, ...);
|
|
#undef NULL
|
|
#define NULL 0
|
|
+#endif
|
|
|
|
#if defined(__i386__)
|
|
#define AREG0 "ebp"
|