diff options
author | j_mayer | 2007-04-07 13:48:04 +0200 |
---|---|---|
committer | j_mayer | 2007-04-07 13:48:04 +0200 |
commit | b6e27ab8b12ef6075d85fc505f821643804a3a79 (patch) | |
tree | 28f84db5727ed7616f176f66559264f5e9940783 | |
parent | cpu_get_phys_page_debug should return target_phys_addr_t (diff) | |
download | qemu-b6e27ab8b12ef6075d85fc505f821643804a3a79.tar.gz qemu-b6e27ab8b12ef6075d85fc505f821643804a3a79.tar.xz qemu-b6e27ab8b12ef6075d85fc505f821643804a3a79.zip |
PowerPC 64 fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2634 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | target-ppc/op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/op.c b/target-ppc/op.c index b284798dc7..3a2f5f85b4 100644 --- a/target-ppc/op.c +++ b/target-ppc/op.c @@ -777,7 +777,7 @@ void OPPROTO op_adde_64 (void) /* add immediate */ PPC_OP(addi) { - T0 += PARAM(1); + T0 += (int32_t)PARAM(1); RETURN(); } @@ -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 { |