VirtualBox

Changeset 12427 in vbox for trunk/src


Ignore:
Timestamp:
Sep 12, 2008 2:53:22 PM (16 years ago)
Author:
vboxsync
Message:

Minor 64 bits guest execution issues.

Location:
trunk/src/recompiler
Files:
2 edited

Legend:

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

    r12308 r12427  
    19811981             */
    19821982            pVM->rem.s.Env.exception_is_int     = 1;
    1983             pVM->rem.s.Env.exception_next_eip   = pCtx->eip + 2;
     1983            pVM->rem.s.Env.exception_next_eip   = pCtx->rip + 2;
    19841984            /* int 3 may be generated by one-byte 0xcc */
    19851985            if (u8TrapNo == 3)
    19861986            {
    1987                 if (read_byte(&pVM->rem.s.Env, pVM->rem.s.Env.segs[R_CS].base + pCtx->eip) == 0xcc)
    1988                     pVM->rem.s.Env.exception_next_eip = pCtx->eip + 1;
     1987                if (read_byte(&pVM->rem.s.Env, pVM->rem.s.Env.segs[R_CS].base + pCtx->rip) == 0xcc)
     1988                    pVM->rem.s.Env.exception_next_eip = pCtx->rip + 1;
    19891989            }
    19901990            /* int 4 may be generated by one-byte 0xce */
    19911991            else if (u8TrapNo == 4)
    19921992            {
    1993                 if (read_byte(&pVM->rem.s.Env, pVM->rem.s.Env.segs[R_CS].base + pCtx->eip) == 0xce)
    1994                     pVM->rem.s.Env.exception_next_eip = pCtx->eip + 1;
     1993                if (read_byte(&pVM->rem.s.Env, pVM->rem.s.Env.segs[R_CS].base + pCtx->rip) == 0xce)
     1994                    pVM->rem.s.Env.exception_next_eip = pCtx->rip + 1;
    19951995            }
    19961996        }
  • trunk/src/recompiler/target-i386/helper.c

    r12240 r12427  
    965965    uint32_t e1, e2, e3, ss;
    966966    target_ulong old_eip, esp, offset;
     967
     968#ifdef VBOX
     969    if (remR3NotifyTrap(env, intno, error_code, next_eip) != VINF_SUCCESS)
     970        cpu_loop_exit();
     971#endif
    967972
    968973    has_error_code = 0;
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