VirtualBox

Changeset 18927 in vbox for trunk/src/VBox/VMM/DBGFBp.cpp


Ignore:
Timestamp:
Apr 16, 2009 11:41:38 AM (16 years ago)
Author:
vboxsync
Message:

Big step to separate VMM data structures for guest SMP. (pgm, em)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGFBp.cpp

    r13818 r18927  
    379379{
    380380    /** @todo should actually use physical address here! */
     381
     382    /* @todo SMP support! */
     383    PVMCPU pVCpu = &pVM->aCpus[0];
     384
    381385    /*
    382386     * Save current byte and write int3 instruction.
    383387     */
    384     int rc = MMR3ReadGCVirt(pVM, &pBp->u.Int3.bOrg, pBp->GCPtr, 1);
     388    int rc = DBGFR3ReadGCVirt(pVM, pVCpu, &pBp->u.Int3.bOrg, pBp->GCPtr, 1);
    385389    if (RT_SUCCESS(rc))
    386390    {
    387391        static const uint8_t s_bInt3 = 0xcc;
    388         rc = MMR3WriteGCVirt(pVM, pBp->GCPtr, &s_bInt3, 1);
     392        rc = DBGFR3WriteGCVirt(pVM, pVCpu, pBp->GCPtr, &s_bInt3, 1);
    389393    }
    390394    return rc;
     
    402406static int dbgfR3BpInt3Disarm(PVM pVM, PDBGFBP pBp)
    403407{
     408    /* @todo SMP support! */
     409    PVMCPU pVCpu = &pVM->aCpus[0];
     410
    404411    /*
    405412     * Check that the current byte is the int3 instruction, and restore the original one.
     
    407414     */
    408415    uint8_t bCurrent;
    409     int rc = MMR3ReadGCVirt(pVM, &bCurrent, pBp->GCPtr, 1);
     416    int rc = DBGFR3ReadGCVirt(pVM, pVCpu, &bCurrent, pBp->GCPtr, 1);
    410417    if (bCurrent == 0xcc)
    411         rc = MMR3WriteGCVirt(pVM, pBp->GCPtr, &pBp->u.Int3.bOrg, 1);
     418        rc = DBGFR3WriteGCVirt(pVM, pVCpu, pBp->GCPtr, &pBp->u.Int3.bOrg, 1);
    412419    return rc;
    413420}
     
    563570static int dbgfR3BpRegArm(PVM pVM, PDBGFBP pBp)
    564571{
     572    /* @todo SMP support! */
     573    PVMCPU pVCpu = &pVM->aCpus[0];
     574
    565575    Assert(pBp->fEnabled);
    566     return CPUMRecalcHyperDRx(pVM);
     576    return CPUMRecalcHyperDRx(pVCpu);
    567577}
    568578
     
    578588static int dbgfR3BpRegDisarm(PVM pVM, PDBGFBP pBp)
    579589{
     590    /* @todo SMP support! */
     591    PVMCPU pVCpu = &pVM->aCpus[0];
     592
    580593    Assert(!pBp->fEnabled);
    581     return CPUMRecalcHyperDRx(pVM);
     594    return CPUMRecalcHyperDRx(pVCpu);
    582595}
    583596
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