Changeset 19076 in vbox for trunk/src/recompiler_new
- Timestamp:
- Apr 21, 2009 1:20:48 PM (16 years ago)
- Location:
- trunk/src/recompiler_new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/VBoxREMWrapper.cpp
r19032 r19076 510 510 static const REMPARMDESC g_aArgsCPUMGetGuestCpuId[] = 511 511 { 512 { REMPARMDESC_FLAGS_INT, sizeof(PVM ), NULL },512 { REMPARMDESC_FLAGS_INT, sizeof(PVMCPU), NULL }, 513 513 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t), NULL }, 514 514 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t *), NULL }, -
trunk/src/recompiler_new/VBoxRecompiler.c
r19032 r19076 293 293 return VERR_GENERAL_FAILURE; 294 294 } 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); 297 298 298 299 /* allocate code buffer for single instruction emulation. */ … … 722 723 * Get the CPUID features. 723 724 */ 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); 726 728 727 729 /* … … 1972 1974 1973 1975 /* 1974 * Get the CPUID features.1975 */1976 CPUMGetGuestCpuId(pV M, 1, &u32Dummy, &u32Dummy, &pVM->rem.s.Env.cpuid_ext_features, &pVM->rem.s.Env.cpuid_features);1977 CPUMGetGuestCpuId(pV M, 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); 1978 1980 } 1979 1981 … … 4251 4253 void remR3CpuId(CPUState *env, unsigned uOperator, void *pvEAX, void *pvEBX, void *pvECX, void *pvEDX) 4252 4254 { 4253 CPUMGetGuestCpuId(env->pV M, 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); 4254 4256 } 4255 4257
Note:
See TracChangeset
for help on using the changeset viewer.