VirtualBox

Changeset 47550 in vbox for trunk/src/recompiler


Ignore:
Timestamp:
Aug 6, 2013 4:09:04 AM (11 years ago)
Author:
vboxsync
Message:

REM: Hack for dispatching interrupts to vector 8 via TRPM in IEM_VERIFICATION_MODE. (This should be fixed properly one day.)

Location:
trunk/src/recompiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r47309 r47550  
    24272427        {
    24282428            pVM->rem.s.Env.exception_is_int     = 0;
     2429#ifdef IEM_VERIFICATION_MODE /* Ugly hack, needs proper fixing. */
     2430            pVM->rem.s.Env.exception_is_int     = enmType == TRPM_HARDWARE_INT ? 0x42 : 0;
     2431#endif
    24292432            pVM->rem.s.Env.exception_next_eip   = pVM->rem.s.Env.eip;
    24302433        }
  • trunk/src/recompiler/cpu-exec.c

    r43394 r47550  
    345345                         env->segs[R_CS].selector, (RTGCPTR)env->exception_next_eip));
    346346#  endif /* VBOX */
     347#  ifdef IEM_VERIFICATION_MODE /* Ugly hack*/
     348                    do_interrupt(env->exception_index,
     349                                 env->exception_is_int && env->exception_is_int != 0x42,
     350                                 env->error_code,
     351                                 env->exception_next_eip,
     352                                 env->exception_is_int == 0x42);
     353#  else
    347354                    do_interrupt(env->exception_index,
    348355                                 env->exception_is_int,
    349356                                 env->error_code,
    350357                                 env->exception_next_eip, 0);
     358#  endif
    351359                    /* successfully delivered */
    352360                    env->old_exception = -1;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette