qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] Incorrect arm vfp condition codes


From: Paul Brook
Subject: [Qemu-devel] [patch] Incorrect arm vfp condition codes
Date: Sat, 23 Apr 2005 17:42:26 +0100
User-agent: KMail/1.7.2

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 via email to

[Prev in Thread] Current Thread [Next in Thread]