mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
division by zero FPU exception support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@795 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
28c3ee3fed
commit
2ee73ac3a8
5 changed files with 64 additions and 6 deletions
|
@ -3761,6 +3761,11 @@ static uint8_t *disas_insn(DisasContext *s, uint8_t *pc_start)
|
|||
if ((s->flags & (HF_MP_MASK | HF_TS_MASK)) ==
|
||||
(HF_MP_MASK | HF_TS_MASK)) {
|
||||
gen_exception(s, EXCP07_PREX, pc_start - s->cs_base);
|
||||
} else {
|
||||
if (s->cc_op != CC_OP_DYNAMIC)
|
||||
gen_op_set_cc_op(s->cc_op);
|
||||
gen_op_jmp_im(pc_start - s->cs_base);
|
||||
gen_op_fwait();
|
||||
}
|
||||
break;
|
||||
case 0xcc: /* int3 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue