From: "Loïc Minier" <loic.minier@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Loïc Minier" <loic.minier@linaro.org>,
"Arnd Bergmann" <arnd.bergmann@linaro.org>
Subject: [Qemu-devel] [PATCH] Ignore writes of perf reg (cp15 with crm == 12)
Date: Sun, 25 Jul 2010 21:27:56 +0200 [thread overview]
Message-ID: <1280086076-20649-1-git-send-email-loic.minier@linaro.org> (raw)
On ARMv7, ignore writes to cp15 with crm == 12; these are to setup perf
counters which we don't have.
---
target-arm/helper.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/target-arm/helper.c b/target-arm/helper.c
index 2dd64d9..865829f 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -1457,6 +1457,8 @@ void HELPER(set_cp15)(CPUState *env, uint32_t insn, uint32_t val)
}
break;
case 9:
+ if (arm_feature(env, ARM_FEATURE_V7) && crm == 12)
+ break; /* Perf counters. */
if (arm_feature(env, ARM_FEATURE_OMAPCP))
break;
switch (crm) {
--
1.7.1
next reply other threads:[~2010-07-25 19:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-25 19:27 Loïc Minier [this message]
2010-07-28 11:29 ` [Qemu-devel] Re: [PATCH] Ignore writes of perf reg (cp15 with crm == 12) Arnd Bergmann
2010-07-28 14:23 ` [Qemu-devel] " Loïc Minier
2010-07-30 21:30 ` Aurelien Jarno
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=1280086076-20649-1-git-send-email-loic.minier@linaro.org \
--to=loic.minier@linaro.org \
--cc=arnd.bergmann@linaro.org \
--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).