From: Gwenole Beauchesne <gbeauchesne@mandriva.com>
To: qemu-devel@nongnu.org
Cc: paul@codesourcery.com
Subject: [Qemu-devel] [PATCH] Fix gcc4 patch
Date: Thu, 2 Jun 2005 23:27:59 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.58.0506022319050.2430@thalys.mandrakesoft.com> (raw)
Hi,
I got a "No return instruction found in op_lmsw_T0" when building qemu
with the gcc4 patch + gcc3.3. push imm8 was misdecoded. Also fixed the
imul case at the same time.
Tested with gcc 3.3.4 (hammer-branch), 3.4.3, 4.0.1 (4.0-branch).
2005-06-02 Gwenole Beauchesne <gbeauchesne@mandriva.com>
* dyngen.c (trace_i386_insn): Fix push/imul case with 8-bit
immediate.
--- dyngen.c.orig 2005-06-02 21:41:51.000000000 +0200
+++ dyngen.c 2005-06-02 22:19:59.000000000 +0200
@@ -1672,14 +1672,19 @@
is_prefix = 1;
break;
case 8: /* push immediate */
- case 10: /* pop immediate */
immed = op_size;
modrm = 0;
break;
+ case 10: /* push 8-bit immediate */
+ immed = 1;
+ modrm = 0;
+ break;
case 9: /* imul immediate */
- case 11: /* imul immediate */
immed = op_size;
break;
+ case 11: /* imul 8-bit immediate */
+ immed = 1;
+ break;
case 12: /* insb */
case 13: /* insw */
case 14: /* outsb */
reply other threads:[~2005-06-02 21:35 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=Pine.LNX.4.58.0506022319050.2430@thalys.mandrakesoft.com \
--to=gbeauchesne@mandriva.com \
--cc=paul@codesourcery.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 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).