[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Building on ARM host
From: |
Steve Magoun |
Subject: |
[Qemu-devel] [PATCH] Building on ARM host |
Date: |
Wed, 21 Dec 2005 10:47:46 -0500 |
This patch cleans up some bitrot that prevented qemu from building on
arm. It includes a fix for dyngen.h suggested by Chih-Chung Chang. The
resulting binary runs simple i386 programs like 'ls' on an arm host.
Steve
Index: cpu-exec.c
===================================================================
RCS file: /cvsroot/qemu/qemu/cpu-exec.c,v
retrieving revision 1.72
diff -u -r1.72 cpu-exec.c
--- cpu-exec.c 19 Dec 2005 01:42:32 -0000 1.72
+++ cpu-exec.c 21 Dec 2005 15:32:54 -0000
@@ -1326,7 +1326,7 @@
is_write = 0;
return handle_cpu_signal(pc, (unsigned long)info->si_addr,
is_write,
- &uc->uc_sigmask);
+ &uc->uc_sigmask, puc);
}
#elif defined(__mc68000)
Index: disas.c
===================================================================
RCS file: /cvsroot/qemu/qemu/disas.c,v
retrieving revision 1.29
diff -u -r1.29 disas.c
--- disas.c 17 Dec 2005 01:10:04 -0000 1.29
+++ disas.c 21 Dec 2005 15:32:54 -0000
@@ -270,9 +270,7 @@
#ifdef __arm__
/* since data are included in the code, it is better to
display code data too */
- if (is_host) {
- fprintf(out, "%08x ", (int)bfd_getl32((const bfd_byte
*)pc));
- }
+ fprintf(out, "%08x ", (int)bfd_getl32((const bfd_byte *)pc));
#endif
count = print_insn(pc, &disasm_info);
fprintf(out, "\n");
Index: dyngen.h
===================================================================
RCS file: /cvsroot/qemu/qemu/dyngen.h,v
retrieving revision 1.8
diff -u -r1.8 dyngen.h
--- dyngen.h 7 Apr 2005 22:20:28 -0000 1.8
+++ dyngen.h 21 Dec 2005 15:32:54 -0000
@@ -19,7 +19,13 @@
*/
int __op_param1, __op_param2, __op_param3;
+#ifdef __arm__
+void __op_gen_label1(){}
+void __op_gen_label2(){}
+void __op_gen_label3(){}
+#else
int __op_gen_label1, __op_gen_label2, __op_gen_label3;
+#endif
int __op_jmp0, __op_jmp1, __op_jmp2, __op_jmp3;
#ifdef __i386__
Steve
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Building on ARM host,
Steve Magoun <=