VirtualBox

Ignore:
Timestamp:
Oct 6, 2008 2:48:49 PM (16 years ago)
Author:
vboxsync
Message:

infrastructure work for X2APIC support

File:
1 edited

Legend:

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

    r12828 r13013  
    40874087
    40884088
     4089uint64_t cpu_apic_rdmsr(CPUX86State *env, uint32_t reg)
     4090{
     4091    uint64_t value;
     4092    int rc = PDMApicRDMSR(env->pVM, 0/* cpu */, reg, &value);
     4093    if (rc != VINF_SUCCESS)
     4094    {
     4095        /** @todo: exception ? */
     4096        value = 0;
     4097    }
     4098    return value;
     4099}
     4100
     4101void     cpu_apic_wrmsr(CPUX86State *env, uint32_t reg, uint64_t value)
     4102{
     4103    int rc = PDMApicWRMSR(env->pVM, 0 /* cpu */, reg, value);
     4104    if (rc != VINF_SUCCESS)
     4105    {
     4106        /** @todo: exception ? */
     4107    }
     4108}
    40894109/* -+- I/O Ports -+- */
    40904110
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