Revision ecada8a2 target-i386/helper.c
b/target-i386/helper.c | ||
---|---|---|
2328 | 2328 |
void helper_rdtsc(void) |
2329 | 2329 |
{ |
2330 | 2330 |
uint64_t val; |
2331 |
|
|
2331 |
|
|
2332 |
if ((env->cr[4] & CR4_TSD_MASK) && ((env->hflags & HF_CPL_MASK) != 0)) { |
|
2333 |
raise_exception(EXCP0D_GPF); |
|
2334 |
} |
|
2332 | 2335 |
val = cpu_get_tsc(env); |
2333 | 2336 |
EAX = (uint32_t)(val); |
2334 | 2337 |
EDX = (uint32_t)(val >> 32); |
Also available in: Unified diff