From: Bob Deblier <bob.deblier@telenet.be>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Compilation on FC3 x86_64 host
Date: Sat, 12 Feb 2005 15:24:44 +0100 [thread overview]
Message-ID: <1108218284.5532.12.camel@orion> (raw)
Hi,
Since the availability of the gcc-3.4.3-17 compiler on rawhide, which
doesn't crash on qemu source code, I've tried compiling the latest CVS
update once more.
There seems to be a problem with dyngen generating strange output for
quite a few functions in i386-user/op.h; as an example I'll select
op_jmp_label:
> case INDEX_op_jmp_label: {
> extern void op_jmp_label();
> extern char GOTO_LABEL_PARAM;
> memcpy(gen_code_ptr, (void *)((char *)&op_jmp_label+0), 20);
> *(uint32_t *)(gen_code_ptr + 12) = (long)(&GOTO_LABEL_PARAM) -
> (long)(gen_code_ptr + 12) + -4;
> gen_code_ptr += 20;
> }
> break;
The cause for this seems to be a missing definition for GOTO_LABEL_PARAM
in dyngen-exec.h, which - assuming that the code is similar to i386 -
can be patched with:
diff -p -r1.20 dyngen-exec.h
*** dyngen-exec.h 26 Jan 2005 21:30:57 -0000 1.20
--- dyngen-exec.h 12 Feb 2005 14:17:39 -0000
*************** extern int __op_jmp0, __op_jmp1, __op_jm
*** 221,226 ****
--- 221,227 ----
#endif
#ifdef __x86_64__
#define EXIT_TB() asm volatile ("ret")
+ #define GOTO_LABEL_PARAM(n) asm volatile ("jmp " ASM_NAME
(__op_gen_label) #n)
#endif
#ifdef __powerpc__
#define EXIT_TB() asm volatile ("blr")
I haven't tested this fix yet, but it compiles the i386 targets. More
feedback will follow...
Sincerely,
Bob Deblier
reply other threads:[~2005-02-12 14:41 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=1108218284.5532.12.camel@orion \
--to=bob.deblier@telenet.be \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).