VirtualBox

Changeset 19076 in vbox for trunk/src/recompiler_new


Ignore:
Timestamp:
Apr 21, 2009 1:20:48 PM (16 years ago)
Author:
vboxsync
Message:

CPUMGetGuestCpuId needs a pVCpu parameter.

Location:
trunk/src/recompiler_new
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/VBoxREMWrapper.cpp

    r19032 r19076  
    510510static const REMPARMDESC g_aArgsCPUMGetGuestCpuId[] =
    511511{
    512     { REMPARMDESC_FLAGS_INT,        sizeof(PVM), NULL },
     512    { REMPARMDESC_FLAGS_INT,        sizeof(PVMCPU), NULL },
    513513    { REMPARMDESC_FLAGS_INT,        sizeof(uint32_t), NULL },
    514514    { REMPARMDESC_FLAGS_INT,        sizeof(uint32_t *), NULL },
  • trunk/src/recompiler_new/VBoxRecompiler.c

    r19032 r19076  
    293293        return VERR_GENERAL_FAILURE;
    294294    }
    295     CPUMGetGuestCpuId(pVM,          1, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext_features, &pVM->rem.s.Env.cpuid_features);
    296     CPUMGetGuestCpuId(pVM, 0x80000001, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext3_features, &pVM->rem.s.Env.cpuid_ext2_features);
     295    PVMCPU pVCpu = VMMGetCpu(pVM);
     296    CPUMGetGuestCpuId(pVCpu,          1, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext_features, &pVM->rem.s.Env.cpuid_features);
     297    CPUMGetGuestCpuId(pVCpu, 0x80000001, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext3_features, &pVM->rem.s.Env.cpuid_ext2_features);
    297298
    298299    /* allocate code buffer for single instruction emulation. */
     
    722723     * Get the CPUID features.
    723724     */
    724     CPUMGetGuestCpuId(pVM,          1, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext_features, &pVM->rem.s.Env.cpuid_features);
    725     CPUMGetGuestCpuId(pVM, 0x80000001, &u32Dummy, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext2_features);
     725    PVMCPU pVCpu = VMMGetCpu(pVM);
     726    CPUMGetGuestCpuId(pVCpu,          1, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext_features, &pVM->rem.s.Env.cpuid_features);
     727    CPUMGetGuestCpuId(pVCpu, 0x80000001, &u32Dummy, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext2_features);
    726728
    727729    /*
     
    19721974
    19731975            /*
    1974             * Get the CPUID features.
    1975             */
    1976             CPUMGetGuestCpuId(pVM,          1, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext_features, &pVM->rem.s.Env.cpuid_features);
    1977             CPUMGetGuestCpuId(pVM, 0x80000001, &u32Dummy, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext2_features);
     1976             * Get the CPUID features.
     1977             */
     1978            CPUMGetGuestCpuId(pVCpu,          1, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext_features, &pVM->rem.s.Env.cpuid_features);
     1979            CPUMGetGuestCpuId(pVCpu, 0x80000001, &u32Dummy, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext2_features);
    19781980        }
    19791981
     
    42514253void remR3CpuId(CPUState *env, unsigned uOperator, void *pvEAX, void *pvEBX, void *pvECX, void *pvEDX)
    42524254{
    4253     CPUMGetGuestCpuId(env->pVM, uOperator, (uint32_t *)pvEAX, (uint32_t *)pvEBX, (uint32_t *)pvECX, (uint32_t *)pvEDX);
     4255    CPUMGetGuestCpuId(env->pVCpu, uOperator, (uint32_t *)pvEAX, (uint32_t *)pvEBX, (uint32_t *)pvECX, (uint32_t *)pvEDX);
    42544256}
    42554257
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