mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 13:31:52 -06:00
Fix taddcctv and tsubcctv (David Matthews)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3379 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
cb33da57aa
commit
90251fb96e
2 changed files with 3 additions and 1 deletions
|
@ -534,7 +534,7 @@ void OPPROTO op_tadd_T1_T0_ccTV(void)
|
||||||
((src1 & 0xffffffff) ^ (T0 & 0xffffffff))) & (1 << 31))
|
((src1 & 0xffffffff) ^ (T0 & 0xffffffff))) & (1 << 31))
|
||||||
raise_exception(TT_TOVF);
|
raise_exception(TT_TOVF);
|
||||||
#else
|
#else
|
||||||
if ((src1 & 0x03) || (T1 & 0x03))
|
if (((src1 ^ T1 ^ -1) & (src1 ^ T0)) & (1 << 31))
|
||||||
raise_exception(TT_TOVF);
|
raise_exception(TT_TOVF);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2027,10 +2027,12 @@ static void disas_sparc_insn(DisasContext * dc)
|
||||||
gen_movl_T0_reg(rd);
|
gen_movl_T0_reg(rd);
|
||||||
break;
|
break;
|
||||||
case 0x22: /* taddcctv */
|
case 0x22: /* taddcctv */
|
||||||
|
save_state(dc);
|
||||||
gen_op_tadd_T1_T0_ccTV();
|
gen_op_tadd_T1_T0_ccTV();
|
||||||
gen_movl_T0_reg(rd);
|
gen_movl_T0_reg(rd);
|
||||||
break;
|
break;
|
||||||
case 0x23: /* tsubcctv */
|
case 0x23: /* tsubcctv */
|
||||||
|
save_state(dc);
|
||||||
gen_op_tsub_T1_T0_ccTV();
|
gen_op_tsub_T1_T0_ccTV();
|
||||||
gen_movl_T0_reg(rd);
|
gen_movl_T0_reg(rd);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue