qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Sparc mulscc Patch


From: Blue Swirl
Subject: [Qemu-devel] Sparc mulscc Patch
Date: Sun, 15 Aug 2004 19:34:01 +0200

I was right about the IU bug, now 2/3 is printf'ed as 0.6667 like it should.

--- qemu-0.6.0.orig/target-sparc/op.c   2004-07-10 20:20:09.000000000 +0200
+++ qemu-0.6.0/target-sparc/op.c        2004-08-15 15:42:44.000000000 +0200
@@ -259,10 +358,10 @@

void OPPROTO op_mulscc_T1_T0(void)
{
-    unsigned int b1, C, V, b2, src1;
-    C = FLAG_SET(PSR_CARRY);
+    unsigned int b1, N, V, b2, src1;
+    N = FLAG_SET(PSR_NEG);
    V = FLAG_SET(PSR_OVF);
-    b1 = C ^ V;
+    b1 = N ^ V;
    b2 = T0 & 1;
    T0 = (b1 << 31) | (T0 >> 1);
    if (!(env->y & 1))

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail





reply via email to

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