qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix messed up MSR_IA32_PERF_STATUS
@ 2008-09-29 18:57 Alexander Graf
  0 siblings, 0 replies; only message in thread
From: Alexander Graf @ 2008-09-29 18:57 UTC (permalink / raw)
  To: qemu-devel; +Cc: paul

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

Fix messed up MSR_IA32_PERF_STATUS

During a merge (probably on my side) the MSR_IA32_PERF_STATUS entry got 
lost in the wrmsr handler. The code is obviously rdmsr though, so let's 
shove it back to where it belongs.

Signed-off-by: Alexander Graf <agraf@suse.de>



[-- Attachment #2: perf_status.patch --]
[-- Type: text/x-patch, Size: 882 bytes --]

Index: target-i386/op_helper.c
===================================================================
--- target-i386/op_helper.c	(revision 5357)
+++ target-i386/op_helper.c	(working copy)
@@ -3175,12 +3175,6 @@
     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 @@
     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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-29 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-29 18:57 [Qemu-devel] [PATCH] Fix messed up MSR_IA32_PERF_STATUS Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).