]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
Force proper sign extension for mfc0/mfhc0 on MIPS64.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 24 Oct 2007 00:10:32 +0000 (00:10 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 24 Oct 2007 00:10:32 +0000 (00:10 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3432 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/op.c

index a666006ad687d62bb065134a075303eeb8e6bf53..5c26d176c1d56ba65fd8e61be8724e005db97b98 100644 (file)
@@ -2328,7 +2328,7 @@ void op_ctc1 (void)
 
 void op_mfc1 (void)
 {
-    T0 = WT0;
+    T0 = (int32_t)WT0;
     DEBUG_FPU_STATE();
     RETURN();
 }
@@ -2356,7 +2356,7 @@ void op_dmtc1 (void)
 
 void op_mfhc1 (void)
 {
-    T0 = WTH0;
+    T0 = (int32_t)WTH0;
     DEBUG_FPU_STATE();
     RETURN();
 }