diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-02-08 21:24:36 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-02-08 21:24:36 +0000 |
commit | 18fba28c95d0f504d745e8e25c61f06e13601d10 (patch) | |
tree | 7660d9472931b651b720fd52a63b34820622b560 /target-ppc/op.c | |
parent | 68016c627beb3df8ce69225b64ed6433efcc967d (diff) |
ppc fixes - gcc 3.4 compile fix (initial patch by Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1273 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op.c')
-rw-r--r-- | target-ppc/op.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/target-ppc/op.c b/target-ppc/op.c index b360bb6e11..c6c0989ce9 100644 --- a/target-ppc/op.c +++ b/target-ppc/op.c @@ -147,21 +147,6 @@ PPC_OP(set_Rc0) } else { tmp = 0x02; } - env->crf[0] = tmp; - RETURN(); -} - -PPC_OP(set_Rc0_ov) -{ - uint32_t tmp; - - if (Ts0 < 0) { - tmp = 0x08; - } else if (Ts0 > 0) { - tmp = 0x04; - } else { - tmp = 0x02; - } tmp |= xer_ov; env->crf[0] = tmp; RETURN(); @@ -1062,14 +1047,14 @@ PPC_OP(eqv) /* extend sign byte */ PPC_OP(extsb) { - Ts0 = s_ext8(Ts0); + Ts0 = (int8_t)(Ts0); RETURN(); } /* extend sign half word */ PPC_OP(extsh) { - Ts0 = s_ext16(Ts0); + Ts0 = (int16_t)(Ts0); RETURN(); } |