summaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-30 23:35:18 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-30 23:35:18 +0000
commitd5e49a8199f4dcc74e54b1633f48ed1a19fd9db8 (patch)
tree29db1af3b2d2519348cab471c33c6309a4e841dc /target-i386
parent2e9b08e59e241fe0119463fc5192e15a6403eded (diff)
downloadqemu-d5e49a8199f4dcc74e54b1633f48ed1a19fd9db8.tar.gz
Handle MSR_IA32_PERF_STATUS in rdmsr (Alexander Graf).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5366 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/op_helper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c
index 737056ae75..32952b3a63 100644
--- a/target-i386/op_helper.c
+++ b/target-i386/op_helper.c
@@ -3175,12 +3175,6 @@ void helper_wrmsr(void)
case MSR_VM_HSAVE_PA:
env->vm_hsave = val;
break;
- case MSR_IA32_PERF_STATUS:
- /* tsc_increment_by_tick */
- val = 1000ULL;
- /* CPU multiplier */
- val |= (((uint64_t)4ULL) << 40);
- break;
#ifdef TARGET_X86_64
case MSR_LSTAR:
env->lstar = val;
@@ -3238,6 +3232,12 @@ void helper_rdmsr(void)
case MSR_VM_HSAVE_PA:
val = env->vm_hsave;
break;
+ case MSR_IA32_PERF_STATUS:
+ /* tsc_increment_by_tick */
+ val = 1000ULL;
+ /* CPU multiplier */
+ val |= (((uint64_t)4ULL) << 40);
+ break;
#ifdef TARGET_X86_64
case MSR_LSTAR:
val = env->lstar;