Commit b6e27ab8b12ef6075d85fc505f821643804a3a79

Authored by j_mayer
1 parent 9b3c35e0

PowerPC 64 fixes


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2634 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-ppc/op.c
... ... @@ -777,7 +777,7 @@ void OPPROTO op_adde_64 (void)
777 777 /* add immediate */
778 778 PPC_OP(addi)
779 779 {
780   - T0 += PARAM(1);
  780 + T0 += (int32_t)PARAM(1);
781 781 RETURN();
782 782 }
783 783  
... ... @@ -1074,7 +1074,7 @@ void OPPROTO op_subfe_64 (void)
1074 1074 /* substract from immediate carrying */
1075 1075 void OPPROTO op_subfic (void)
1076 1076 {
1077   - T0 = PARAM1 + ~T0 + 1;
  1077 + T0 = (int32_t)PARAM1 + ~T0 + 1;
1078 1078 if ((uint32_t)T0 <= (uint32_t)PARAM1) {
1079 1079 xer_ca = 1;
1080 1080 } else {
... ...