Changeset 62286 in vbox
- Timestamp:
- Jul 15, 2016 6:02:42 PM (8 years ago)
- Location:
- trunk/src/recompiler
- Files:
-
- 3 edited
-
VBoxRecompiler.c (modified) (1 diff)
-
cpu-exec.c (modified) (1 diff)
-
target-i386/cpu.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxRecompiler.c
r61634 r62286 2454 2454 if (enmType != TRPM_SOFTWARE_INT) 2455 2455 { 2456 pVM->rem.s.Env.exception_is_int = 0; 2457 #ifdef IEM_VERIFICATION_MODE /* Ugly hack, needs proper fixing. */ 2458 pVM->rem.s.Env.exception_is_int = enmType == TRPM_HARDWARE_INT ? 0x42 : 0; 2459 #endif 2456 pVM->rem.s.Env.exception_is_int = enmType == TRPM_HARDWARE_INT 2457 ? EXCEPTION_IS_INT_VALUE_HARDWARE_IRQ : 0; /* HACK ALERT! */ 2460 2458 pVM->rem.s.Env.exception_next_eip = pVM->rem.s.Env.eip; 2461 2459 } -
trunk/src/recompiler/cpu-exec.c
r60893 r62286 345 345 env->segs[R_CS].selector, (RTGCPTR)env->exception_next_eip)); 346 346 # endif /* VBOX */ 347 # ifdef IEM_VERIFICATION_MODE /* Ugly hacks */348 347 do_interrupt(env->exception_index, 349 env->exception_is_int && env->exception_is_int != 0x42,348 env->exception_is_int && env->exception_is_int != EXCEPTION_IS_INT_VALUE_HARDWARE_IRQ, 350 349 env->error_code, 351 350 env->exception_next_eip, 352 env->exception_is_int == 0x42); 351 env->exception_is_int == EXCEPTION_IS_INT_VALUE_HARDWARE_IRQ); 352 # ifdef IEM_VERIFICATION_MODE /* Ugly hacks */ 353 353 cpu_loop_exit(); 354 # else355 do_interrupt(env->exception_index,356 env->exception_is_int,357 env->error_code,358 env->exception_next_eip, 0);359 354 # endif 360 355 /* successfully delivered */ -
trunk/src/recompiler/target-i386/cpu.h
r61363 r62286 706 706 int error_code; 707 707 int exception_is_int; 708 #ifdef VBOX 709 # define EXCEPTION_IS_INT_VALUE_HARDWARE_IRQ 0x42 /**< Special CPUX86State::exception_is_int value indicating hardware irq. (HACK ALERT) */ 710 #endif 708 711 target_ulong exception_next_eip; 709 712 target_ulong dr[8]; /* debug registers */
Note:
See TracChangeset
for help on using the changeset viewer.

