PowerPC 64 fixes git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2634 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/target-ppc/op.c b/target-ppc/op.c index b284798..3a2f5f8 100644 --- a/target-ppc/op.c +++ b/target-ppc/op.c
@@ -777,7 +777,7 @@ /* add immediate */ PPC_OP(addi) { - T0 += PARAM(1); + T0 += (int32_t)PARAM(1); RETURN(); } @@ -1074,7 +1074,7 @@ /* substract from immediate carrying */ void OPPROTO op_subfic (void) { - T0 = PARAM1 + ~T0 + 1; + T0 = (int32_t)PARAM1 + ~T0 + 1; if ((uint32_t)T0 <= (uint32_t)PARAM1) { xer_ca = 1; } else {