* [Qemu-devel] [patch] Incorrect arm vfp condition codes
@ 2005-04-23 16:42 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2005-04-23 16:42 UTC (permalink / raw)
To: qemu-devel
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;\
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-23 16:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 16:42 [Qemu-devel] [patch] Incorrect arm vfp condition codes Paul Brook
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.