mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
Fix a sign extension problem
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4105 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
64538cdf56
commit
bdf46ea256
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue