Message ID | 1521232280-13089-4-git-send-email-alindsay@codeaurora.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=codeaurora.org header.i=@codeaurora.org header.b="HVKaHtNi"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="X3UwNDP6"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 402xxP3X73z9sPk for <incoming@patchwork.ozlabs.org>; Sat, 17 Mar 2018 07:33:29 +1100 (AEDT) Received: from localhost ([::1]:59434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1eww2Z-00060w-7z for incoming@patchwork.ozlabs.org; Fri, 16 Mar 2018 16:33:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alindsay@codeaurora.org>) id 1eww1F-0005gq-8N for qemu-devel@nongnu.org; Fri, 16 Mar 2018 16:32:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alindsay@codeaurora.org>) id 1eww1E-00037e-Bh for qemu-devel@nongnu.org; Fri, 16 Mar 2018 16:32:05 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55446) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <alindsay@codeaurora.org>) id 1eww1C-00032r-5K; Fri, 16 Mar 2018 16:32:02 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 47B3A60F6D; Fri, 16 Mar 2018 20:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521232321; bh=QGACvL5j2mW267acZxwzp/A8X9+G3iPASyt8JaZBUI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HVKaHtNinm8L71hSDO9Fvp2W/3Ys2mAV1IUPUkA8yAUBUuUN18xqTou+xf7MS6h+j IWAtMdRT3Qb6LtAjVD82cGMRE4rIpZX0ekn60XXwFiNdqa0OSBxToQ4PgYzgODvuXt aW9aRzq12MdvTM/3Zx1Z2UQU6hefQnVT8KTRGtGs= Received: from mossypile.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: alindsay@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8E6AF60C5F; Fri, 16 Mar 2018 20:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521232320; bh=QGACvL5j2mW267acZxwzp/A8X9+G3iPASyt8JaZBUI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X3UwNDP6iFtvsa00aCxTJKdRYHJ/YVebPulXW7/aHnlqtPBJMRAWlf10sCzgz9N9a cOIgE0kMXDIMsEHRc7cL3N40LFbgpwCMesx4gSPWNj5qOF7Nrj/Iv1kdDQx1Vo53iE Y2SChQFmYNwrl5ERvj1ieFkv7ePQfgHIrFh5405Q= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8E6AF60C5F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=alindsay@codeaurora.org From: Aaron Lindsay <alindsay@codeaurora.org> To: qemu-arm@nongnu.org, Peter Maydell <peter.maydell@linaro.org>, Alistair Francis <alistair.francis@xilinx.com>, Wei Huang <wei@redhat.com>, Peter Crosthwaite <crosthwaite.peter@gmail.com> Date: Fri, 16 Mar 2018 16:31:01 -0400 Message-Id: <1521232280-13089-4-git-send-email-alindsay@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521232280-13089-1-git-send-email-alindsay@codeaurora.org> References: <1521232280-13089-1-git-send-email-alindsay@codeaurora.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 198.145.29.96 Subject: [Qemu-devel] [PATCH v3 03/22] target/arm: Check PMCNTEN for whether PMCCNTR is enabled X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Michael Spradling <mspradli@codeaurora.org>, qemu-devel@nongnu.org, Digant Desai <digantd@codeaurora.org> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
More fully implement ARM PMUv3
|
expand
|
diff --git a/target/arm/helper.c b/target/arm/helper.c index 09893e3..5e48982 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -994,7 +994,7 @@ static inline bool arm_ccnt_enabled(CPUARMState *env) { /* This does not support checking PMCCFILTR_EL0 register */ - if (!(env->cp15.c9_pmcr & PMCRE)) { + if (!(env->cp15.c9_pmcr & PMCRE) || !(env->cp15.c9_pmcnten & (1 << 31))) { return false; }