From: Alexander Graf <alex@csgraf.de>
To: qemu-devel@nongnu.org
Cc: paul@codesourcery.com
Subject: [Qemu-devel] [PATCH] Fix messed up MSR_IA32_PERF_STATUS
Date: Mon, 29 Sep 2008 20:57:58 +0200 [thread overview]
Message-ID: <48E12536.8040306@csgraf.de> (raw)
[-- 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;
reply other threads:[~2008-09-29 18:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48E12536.8040306@csgraf.de \
--to=alex@csgraf.de \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).