mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-02 22:41:07 +00:00
simplified exception support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@146 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c50c0c3fbf
commit
564c8f9978
2 changed files with 5 additions and 16 deletions
13
op-i386.c
13
op-i386.c
|
@ -622,10 +622,11 @@ void OPPROTO op_int_im(void)
|
|||
raise_exception_err(EXCP0D_GPF, intno * 8 + 2);
|
||||
}
|
||||
|
||||
void OPPROTO op_int3(void)
|
||||
void OPPROTO op_raise_exception(void)
|
||||
{
|
||||
EIP = PARAM1;
|
||||
raise_exception(EXCP03_INT3);
|
||||
int exception_index;
|
||||
exception_index = PARAM1;
|
||||
raise_exception(exception_index);
|
||||
}
|
||||
|
||||
void OPPROTO op_into(void)
|
||||
|
@ -638,12 +639,6 @@ void OPPROTO op_into(void)
|
|||
FORCE_RET();
|
||||
}
|
||||
|
||||
void OPPROTO op_gpf(void)
|
||||
{
|
||||
EIP = PARAM1;
|
||||
raise_exception(EXCP0D_GPF);
|
||||
}
|
||||
|
||||
void OPPROTO op_cli(void)
|
||||
{
|
||||
env->eflags &= ~IF_MASK;
|
||||
|
|
|
@ -230,13 +230,10 @@ DEF(add_bitl_A0_T1, 0)
|
|||
DEF(jmp_T0, 0)
|
||||
DEF(jmp_im, 1)
|
||||
DEF(int_im, 2)
|
||||
DEF(int3, 1)
|
||||
DEF(raise_exception, 2)
|
||||
DEF(into, 0)
|
||||
DEF(gpf, 1)
|
||||
DEF(cli, 0)
|
||||
DEF(sti, 0)
|
||||
DEF(cli_vm, 0)
|
||||
DEF(sti_vm, 1)
|
||||
DEF(boundw, 0)
|
||||
DEF(boundl, 0)
|
||||
DEF(cmpxchg8b, 0)
|
||||
|
@ -557,11 +554,8 @@ DEF(xor_T0_1, 0)
|
|||
DEF(set_cc_op, 1)
|
||||
DEF(movl_eflags_T0, 0)
|
||||
DEF(movw_eflags_T0, 0)
|
||||
DEF(movw_eflags_T0_vm, 1)
|
||||
DEF(movl_eflags_T0_vm, 1)
|
||||
DEF(movb_eflags_T0, 0)
|
||||
DEF(movl_T0_eflags, 0)
|
||||
DEF(movl_T0_eflags_vm, 0)
|
||||
DEF(cld, 0)
|
||||
DEF(std, 0)
|
||||
DEF(clc, 0)
|
||||
|
|
Loading…
Reference in a new issue