Skip to contentSkip to conversation

qemu/target-i386 helper.c

Qemu-devel Fabrice Bellard 1 participant 1 message Jun 19, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/06/19 22:43:38

Modified files:
target-i386 : helper.c

Log message:
fxam fix (Julian Seward)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/target-i386/helper.c?cvsroot=qemu&r1=1.66&r2=1.67

Patches:
Index: helper.c
===================================================================
RCS file: /sources/qemu/qemu/target-i386/helper.c,v retrieving revision 1.66
retrieving revision 1.67

helper.c +5 -0
diff -u -b -r1.66 -r1.67
@@ -2950,9 +2950,14 @@
     if (SIGND(temp))
         env->fpus |= 0x200; /* C1 <-- 1 */
 
+    /* XXX: test fptags too */
     expdif = EXPD(temp);
     if (expdif == MAXEXPD) {
+#ifdef USE_X86LDOUBLE
+        if (MANTD(temp) == 0x8000000000000000ULL)
+#else
         if (MANTD(temp) == 0)
+#endif
             env->fpus |=  0x500 /*Infinity*/;
         else
             env->fpus |=  0x100 /*NaN*/;