From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] Incorrect arm vfp condition codes
Date: Sat, 23 Apr 2005 17:42:26 +0100 [thread overview]
Message-ID: <200504231742.27070.paul@codesourcery.com> (raw)
The arm vfp fcmp and fcmpe instructions set the condition code incorrectly.
Patch below fixes this.
Paul
Index: target-arm/op_helper.c
===================================================================
RCS file: /cvsroot/qemu/qemu/target-arm/op_helper.c,v
retrieving revision 1.2
diff -u -p -r1.2 op_helper.c
--- target-arm/op_helper.c 13 Mar 2005 18:50:12 -0000 1.2
+++ target-arm/op_helper.c 23 Apr 2005 16:37:09 -0000
@@ -67,7 +67,7 @@ void do_vfp_cmp##p(void)
{ \
uint32_t flags; \
switch(float ## size ## _compare_quiet(FT0##p, FT1##p,
&env->vfp.fp_status)) {\
- case 0: flags = 0xc; break;\
+ case 0: flags = 0x6; break;\
case -1: flags = 0x8; break;\
case 1: flags = 0x2; break;\
default: case 2: flags = 0x3; break;\
@@ -80,7 +80,7 @@ void do_vfp_cmpe##p(void)
{ \
uint32_t flags; \
switch(float ## size ## _compare(FT0##p, FT1##p, &env->vfp.fp_status)) {\
- case 0: flags = 0xc; break;\
+ case 0: flags = 0x6; break;\
case -1: flags = 0x8; break;\
case 1: flags = 0x2; break;\
default: case 2: flags = 0x3; break;\
reply other threads:[~2005-04-23 16:43 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=200504231742.27070.paul@codesourcery.com \
--to=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 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.