From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54689 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Od6sy-0002fo-NX for qemu-devel@nongnu.org; Sun, 25 Jul 2010 15:29:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Od6sw-0003Pl-9k for qemu-devel@nongnu.org; Sun, 25 Jul 2010 15:29:20 -0400 Received: from duck.dooz.org ([194.146.227.125]:59713) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Od6sw-0003PW-5b for qemu-devel@nongnu.org; Sun, 25 Jul 2010 15:29:18 -0400 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Sun, 25 Jul 2010 21:27:56 +0200 Message-Id: <1280086076-20649-1-git-send-email-loic.minier@linaro.org> Subject: [Qemu-devel] [PATCH] Ignore writes of perf reg (cp15 with crm == 12) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= , 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