From: Steve Magoun <smagoun@mac.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Building on ARM host
Date: Wed, 21 Dec 2005 10:47:46 -0500 [thread overview]
Message-ID: <16d89ebc74e39101dddb3af67ac41381@mac.com> (raw)
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
reply other threads:[~2005-12-21 15:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16d89ebc74e39101dddb3af67ac41381@mac.com \
--to=smagoun@mac.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.