VirtualBox

Ignore:
Timestamp:
Jun 14, 2012 11:04:57 PM (12 years ago)
Author:
vboxsync
Message:

DIS: register macro name adjustments - part two.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r41727 r41728  
    22092209    switch (DestRegCrx)
    22102210    {
    2211     case USE_REG_CR0:
     2211    case DISCREG_CR0:
    22122212        oldval = CPUMGetGuestCR0(pVCpu);
    22132213#ifdef IN_RC
     
    22622262        return rc2 == VINF_SUCCESS ? rc : rc2;
    22632263
    2264     case USE_REG_CR2:
     2264    case DISCREG_CR2:
    22652265        rc = CPUMSetGuestCR2(pVCpu, val); AssertRC(rc);
    22662266        return VINF_SUCCESS;
    22672267
    2268     case USE_REG_CR3:
     2268    case DISCREG_CR3:
    22692269        /* Reloading the current CR3 means the guest just wants to flush the TLBs */
    22702270        rc = CPUMSetGuestCR3(pVCpu, val); AssertRC(rc);
     
    22772277        return rc;
    22782278
    2279     case USE_REG_CR4:
     2279    case DISCREG_CR4:
    22802280        oldval = CPUMGetGuestCR4(pVCpu);
    22812281        rc = CPUMSetGuestCR4(pVCpu, val); AssertRC(rc);
     
    23152315        return rc2 == VINF_SUCCESS ? rc : rc2;
    23162316
    2317     case USE_REG_CR8:
     2317    case DISCREG_CR8:
    23182318        return PDMApicSetTPR(pVCpu, val << 4);  /* cr8 bits 3-0 correspond to bits 7-4 of the task priority mmio register. */
    23192319
    23202320    default:
    23212321        AssertFailed();
    2322     case USE_REG_CR1: /* illegal op */
     2322    case DISCREG_CR1: /* illegal op */
    23232323        break;
    23242324    }
     
    23772377                    | (u16Data &  (X86_CR0_PE | X86_CR0_MP | X86_CR0_EM | X86_CR0_TS));
    23782378
    2379     return emUpdateCRx(pVM, pVCpu, pRegFrame, USE_REG_CR0, NewCr0);
     2379    return emUpdateCRx(pVM, pVCpu, pRegFrame, DISCREG_CR0, NewCr0);
    23802380}
    23812381
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