Skip to content

Commit

Permalink
PowerPC 64 fixes
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2634 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
j_mayer committed Apr 7, 2007
1 parent 9b3c35e commit b6e27ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target-ppc/op.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ void OPPROTO op_adde_64 (void)
/* add immediate */
PPC_OP(addi)
{
T0 += PARAM(1);
T0 += (int32_t)PARAM(1);
RETURN();
}

Expand Down Expand Up @@ -1074,7 +1074,7 @@ void OPPROTO op_subfe_64 (void)
/* 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 {
Expand Down

0 comments on commit b6e27ab

Please sign in to comment.