- Timestamp:
- Apr 7, 2010 7:53:12 AM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r27331 r28030 792 792 /* Keep consistent with helper_rdmsr() in REM */ 793 793 u64 = (1000ULL /* TSC increment by tick */) 794 | ((uint64_t)u8Multiplier << 40 /* CPU multiplier */ ); 794 | ((uint64_t)u8Multiplier << 24 /* CPU multiplier (aka bus ratio) min */ ) 795 | ((uint64_t)u8Multiplier << 40 /* CPU multiplier (aka bus ratio) max */ ); 796 break; 797 798 case MSR_IA32_FSB_CLOCK_STS: 799 /** 800 * Encoded as: 801 * 0 - 266 802 * 1 - 133 803 * 2 - 200 804 * 3 - return 166 805 * 5 - return 100 806 */ 807 u64 = (2 << 4); 795 808 break; 796 809 … … 798 811 u64 = ((u8Multiplier)<<8 /* Flex ratio max */) 799 812 | ((uint64_t)u8Multiplier << 40 /* Flex ratio min */ ); 813 break; 814 815 case MSR_IA32_THERM_STATUS: 816 /* CPU temperature reltive to TCC, to actually activate, CPUID leaf 6 EAX[0] must be set */ 817 u64 = (1 << 31) /* validity bit */ | 818 (20 << 16) /* degrees till TCC */; 800 819 break; 801 820 -
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r27976 r28030 2995 2995 case MSR_IA32_PLATFORM_INFO: 2996 2996 case MSR_IA32_MISC_ENABLE: 2997 case MSR_IA32_FSB_CLOCK_STS: 2998 case MSR_IA32_THERM_STATUS: 2997 2999 val = CPUMGetGuestMsr(pVCpu, pRegFrame->ecx); 2998 3000 break; -
trunk/src/recompiler/target-i386/op_helper.c
r27593 r28030 3856 3856 case MSR_IA32_PERF_STATUS: 3857 3857 case MSR_IA32_PLATFORM_INFO: 3858 case MSR_IA32_FSB_CLOCK_STS: 3859 case MSR_IA32_THERM_STATUS: 3858 3860 val = CPUMGetGuestMsr(env->pVCpu, (uint32_t)ECX); 3859 3861 break;
Note:
See TracChangeset
for help on using the changeset viewer.