From: bellard Date: Tue, 24 Aug 2004 22:06:03 +0000 (+0000) Subject: MULSCC fix (Blue Swirl) X-Git-Tag: qemu-xen-4.3.0-rc1~15221 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4e8b5da233d453e60753a3c6326c807c73886c26;p=qemu-upstream-4.6-testing.git MULSCC fix (Blue Swirl) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1051 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/target-sparc/op.c b/target-sparc/op.c index 946c11ec4..e2ef7ae7c 100644 --- a/target-sparc/op.c +++ b/target-sparc/op.c @@ -259,10 +259,10 @@ void OPPROTO op_smul_T1_T0(void) 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))