void raise_exception_err(CPUX86State *env, int exception_index, int error_code) { // TODO : remove this or make it as debug only printf("Debug Raise Exception: RBP: %lx RSP: %lx EIP: %lx\n", env->regs[R_EBP], env->regs[R_ESP], env->eip); raise_interrupt2(env, exception_index, 0, error_code, 0); }
void raise_exception(CPUX86State *env, int exception_index) { raise_interrupt2(env, exception_index, 0, 0, 0); }
void raise_exception_err(CPUX86State *env, int exception_index, int error_code) { raise_interrupt2(env, exception_index, 0, error_code, 0); }
void QEMU_NORETURN raise_interrupt(CPUX86State *env, int intno, int is_int, int error_code, int next_eip_addend) { raise_interrupt2(env, intno, is_int, error_code, next_eip_addend); }
void raise_exception_ra(CPUX86State *env, int exception_index, uintptr_t retaddr) { raise_interrupt2(env, exception_index, 0, 0, 0, retaddr); }