aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-24 17:47:03 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-24 17:47:03 +0000
commitbdf46ea256cfc12221b64399c4e896139990e2c1 (patch)
treec730607667c9da51343b3d00d13d033a84be0494 /target-sparc
parent64538cdf5653275661aff918d00a363c570ad39a (diff)
Fix a sign extension problem
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4105 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 03d055bf4d..8d6ffdd289 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -419,7 +419,7 @@ static inline void gen_cc_NZ(TCGv dst)
tcg_gen_brcond_tl(TCG_COND_NE, r_temp, tcg_const_tl(0), l1);
tcg_gen_ori_i32(cpu_psr, cpu_psr, PSR_ZERO);
gen_set_label(l1);
- tcg_gen_andi_tl(r_temp, dst, 0xffffffffULL);
+ tcg_gen_ext_i32_tl(r_temp, dst);
tcg_gen_brcond_tl(TCG_COND_GE, r_temp, tcg_const_tl(0), l2);
tcg_gen_ori_i32(cpu_psr, cpu_psr, PSR_NEG);
gen_set_label(l2);