qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Ignore writes of perf reg (cp15 with crm == 12)
@ 2010-07-25 19:27 Loïc Minier
  2010-07-28 11:29 ` [Qemu-devel] " Arnd Bergmann
  2010-07-28 14:23 ` [Qemu-devel] " Loïc Minier
  0 siblings, 2 replies; 4+ messages in thread
From: Loïc Minier @ 2010-07-25 19:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Loïc Minier, Arnd Bergmann

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-30 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-25 19:27 [Qemu-devel] [PATCH] Ignore writes of perf reg (cp15 with crm == 12) Loïc Minier
2010-07-28 11:29 ` [Qemu-devel] " Arnd Bergmann
2010-07-28 14:23 ` [Qemu-devel] " Loïc Minier
2010-07-30 21:30   ` Aurelien Jarno

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).