From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Fri, 15 Feb 2008 10:50:22 +0800 Subject: [PATCH] qemu: IA64 also need to workaround tcg code. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> --- qemu/dyngen.c | 1 - qemu/hw/ipf.c | 1 - qemu/target-ia64/fake-exec.c | 44 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 qemu/target-ia64/fake-exec.c
diff --git a/qemu/dyngen.c b/qemu/dyngen.c
index e5122e3..146d4ec 100644
--- a/qemu/dyngen.c
+++ b/qemu/dyngen.c
@@ -2767,7 +2767,6 @@ fprintf(outfile,
" uint8_t *arm_pool_ptr = gen_code_buf + 0x1000000;\n");
#endif
#ifdef HOST_IA64
-#error broken
{
long addend, not_first = 0;
unsigned long sym_idx;
diff --git a/qemu/hw/ipf.c b/qemu/hw/ipf.c
index ce67715..8c5304d 100644
--- a/qemu/hw/ipf.c
+++ b/qemu/hw/ipf.c
@@ -37,7 +37,6 @@
#include "boards.h"
#include "firmware.h"
#include "ia64intrin.h"
-#include "dyngen.h"
#include <unistd.h>
#include "qemu-kvm.h"
diff --git a/qemu/target-ia64/fake-exec.c b/qemu/target-ia64/fake-exec.c
new file mode 100644
index 0000000..0be4ffd
--- /dev/null
+++ b/qemu/target-ia64/fake-exec.c
@@ -0,0 +1,44 @@
+/*
+ * fake-exec.c for ia64.
+ *
+ * This is a file for stub functions so that compilation is possible
+ * when TCG CPU emulation is disabled during compilation.
+ *
+ * Copyright 2007 IBM Corporation.
+ * Added by & Authors:
+ * Jerone Young <[EMAIL PROTECTED]>
+ *
+ * Copyright 2008 Intel Corporation.
+ * Added by Xiantao Zhang <[EMAIL PROTECTED]>
+ *
+ * This work is licensed under the GNU GPL licence version 2 or later.
+ *
+ */
+#include "exec.h"
+#include "cpu.h"
+
+int code_copy_enabled = 0;
+
+void cpu_gen_init(void)
+{
+}
+
+unsigned long code_gen_max_block_size(void)
+{
+ return 32;
+}
+
+int cpu_ia64_gen_code(CPUState *env, TranslationBlock *tb, int
*gen_code_size_ptr)
+{
+ return 0;
+}
+
+void flush_icache_range(unsigned long start, unsigned long stop)
+{
+ while (start < stop) {
+ asm volatile ("fc %0" :: "r"(start));
+ start += 32;
+ }
+ asm volatile (";;sync.i;;srlz.i;;");
+}
+
--
1.5.2
0001-qemu-IA64-also-need-to-workaround-tcg-code.patch
Description: 0001-qemu-IA64-also-need-to-workaround-tcg-code.patch
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
