diff options
Diffstat (limited to 'emulators/qemu/files/patch-PRId64')
-rw-r--r-- | emulators/qemu/files/patch-PRId64 | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/emulators/qemu/files/patch-PRId64 b/emulators/qemu/files/patch-PRId64 new file mode 100644 index 000000000000..3d559d3be61b --- /dev/null +++ b/emulators/qemu/files/patch-PRId64 @@ -0,0 +1,113 @@ +Index: qemu/vl.h +@@ -30,6 +30,12 @@ + #include <stdarg.h> + #include <string.h> + #include <inttypes.h> ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif + #include <limits.h> + #include <time.h> + #include <ctype.h> +Index: qemu/dis-asm.h +@@ -13,6 +13,12 @@ + #include <stdio.h> + #include <string.h> + #include <inttypes.h> ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif + + #define PARAMS(x) x + typedef void *PTR; +Index: qemu/kqemu.c +@@ -33,6 +33,12 @@ + #include <errno.h> + #include <unistd.h> + #include <inttypes.h> ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif + + #include "cpu.h" + #include "exec-all.h" +Index: qemu/translate-all.c +@@ -22,6 +22,12 @@ + #include <stdio.h> + #include <string.h> + #include <inttypes.h> ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif + + #include "config.h" + +Index: qemu/target-i386/helper.c +@@ -21,6 +21,13 @@ + + //#define DEBUG_PCALL + ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif ++ + #if 0 + #define raise_exception_err(a, b)\ + do {\ +Index: qemu/target-i386/helper2.c +@@ -22,6 +22,12 @@ + #include <stdio.h> + #include <string.h> + #include <inttypes.h> ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif + #include <signal.h> + #include <assert.h> + +Index: qemu/target-ppc/translate.c +@@ -22,6 +22,12 @@ + #include <stdio.h> + #include <string.h> + #include <inttypes.h> ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif + + #include "cpu.h" + #include "exec-all.h" +Index: qemu/target-sparc/helper.c +@@ -22,6 +22,12 @@ + #include <stdio.h> + #include <string.h> + #include <inttypes.h> ++#ifndef PRId64 ++#define PRId64 "lld" /* int64_t */ ++#define PRIo64 "llo" /* int64_t */ ++#define PRIx64 "llx" /* int64_t */ ++#define PRIu64 "llu" /* int64_t */ ++#endif + #include <signal.h> + #include <assert.h> + |