VirtualBox

Changeset 20682 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Jun 18, 2009 11:07:33 AM (16 years ago)
Author:
vboxsync
Message:

EMAll.cpp: Implemented writing MSR_IA32_TSC.

File:
1 edited

Legend:

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

    r20671 r20682  
    29082908    default:
    29092909        /* In X2APIC specification this range is reserved for APIC control. */
    2910         if ((pRegFrame->ecx >= MSR_IA32_APIC_START) && (pRegFrame->ecx < MSR_IA32_APIC_END))
     2910        if (    pRegFrame->ecx >= MSR_IA32_APIC_START
     2911            &&  pRegFrame->ecx <  MSR_IA32_APIC_END)
    29112912            rc = PDMApicReadMSR(pVM, pVCpu->idCpu, pRegFrame->ecx, &val);
    29122913        else
     
    29192920    {
    29202921        pRegFrame->rax = (uint32_t) val;
    2921         pRegFrame->rdx = (uint32_t) (val >> 32ULL);
     2922        pRegFrame->rdx = (uint32_t)(val >> 32);
    29222923    }
    29232924    return rc;
     
    29662967    switch (pRegFrame->ecx)
    29672968    {
     2969    case MSR_IA32_TSC:
     2970        TMCpuTickSet(pVM, pVCpu, val);
     2971        break;
     2972
    29682973    case MSR_IA32_APICBASE:
    29692974    {
     
    30583063    default:
    30593064        /* In X2APIC specification this range is reserved for APIC control. */
    3060         if ((pRegFrame->ecx >=  MSR_IA32_APIC_START) && (pRegFrame->ecx <  MSR_IA32_APIC_END))
     3065        if (    pRegFrame->ecx >= MSR_IA32_APIC_START
     3066            &&  pRegFrame->ecx <  MSR_IA32_APIC_END)
    30613067            return PDMApicWriteMSR(pVM, pVCpu->idCpu, pRegFrame->ecx, val);
    30623068
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