VirtualBox

Changeset 23758 in vbox


Ignore:
Timestamp:
Oct 14, 2009 12:21:21 PM (15 years ago)
Author:
vboxsync
Message:

Skeleton code for synthetic cpu handling.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r23722 r23758  
    297297                 &pCPUM->aGuestCpuIdCentaur[i].eax, &pCPUM->aGuestCpuIdCentaur[i].ebx,
    298298                 &pCPUM->aGuestCpuIdCentaur[i].ecx, &pCPUM->aGuestCpuIdCentaur[i].edx);
    299 
    300299
    301300    /*
     
    397396                                       //| X86_CPUID_AMD_FEATURE_ECX_WDT
    398397                                       | 0;
     398
     399    CFGMR3QueryBoolDef(CFGMR3GetChild(CFGMR3GetRoot(pVM), "CPUM"), "SyntheticCpu", &pCPUM->fSyntheticCpu, false);
     400    if (pCPUM->fSyntheticCpu)
     401    {
     402        /* AMD only; shared feature bits are set dynamically. */
     403        pCPUM->aGuestCpuIdExt[1].edx = 0;
     404        pCPUM->aGuestCpuIdExt[1].ecx = 0;
     405
     406        /** @todo fill in the rest of the cpu leaves. */
     407    }
    399408
    400409    /*
  • trunk/src/VBox/VMM/CPUMInternal.h

    r21252 r23758  
    298298    /** Have we entered rawmode? */
    299299    bool                    fRawEntered;
    300     uint8_t                 abPadding[3 + (HC_ARCH_BITS == 64) * 4];
     300    /** Synthetic CPU type? */
     301    bool                    fSyntheticCpu;
     302    uint8_t                 abPadding[2 + (HC_ARCH_BITS == 64) * 4];
    301303
    302304    /** The standard set of CpuId leafs. */
  • trunk/src/VBox/VMM/CPUMInternal.mac

    r18927 r23758  
    7171    ; entered rawmode?
    7272    .fRawEntered          resb    1
     73    .fSyntheticCpu        resb    1
    7374%if RTHCPTR_CB == 8
    74     .abPadding            resb    7
     75    .abPadding            resb    6
    7576%else
    76     .abPadding            resb    3
     77    .abPadding            resb    2
    7778%endif
    7879
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