Changeset 14411 in vbox for trunk/src/recompiler/target-i386/helper.c
- Timestamp:
- Nov 20, 2008 1:26:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/target-i386/helper.c
r13839 r14411 3023 3023 } 3024 3024 3025 #ifdef VBOX 3026 void helper_rdtscp(void) 3027 { 3028 uint64_t val; 3029 3030 if ((env->cr[4] & CR4_TSD_MASK) && ((env->hflags & HF_CPL_MASK) != 0)) { 3031 raise_exception(EXCP0D_GPF); 3032 } 3033 3034 val = cpu_get_tsc(env); 3035 EAX = (uint32_t)(val); 3036 EDX = (uint32_t)(val >> 32); 3037 ECX = cpu_rdmsr(env, MSR_K8_TSC_AUX); 3038 } 3039 #endif 3040 3025 3041 #if defined(CONFIG_USER_ONLY) 3026 3042 void helper_wrmsr(void) … … 3106 3122 break; 3107 3123 } 3124 case MSR_K8_TSC_AUX: 3125 cpu_wrmsr(env, MSR_K8_TSC_AUX, val); 3126 break; 3108 3127 #endif /* VBOX */ 3109 3128 } … … 3170 3189 break; 3171 3190 } 3191 case MSR_K8_TSC_AUX: 3192 val = cpu_rdmsr(env, MSR_K8_TSC_AUX); 3193 break; 3172 3194 #endif /* VBOX */ 3173 3195 }
Note:
See TracChangeset
for help on using the changeset viewer.