Message ID | 1523997485-1905-2-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="mP8Bb0fq"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="m9yBr4Ow"; 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 40QcdV3Shjz9s15 for <incoming@patchwork.ozlabs.org>; Wed, 18 Apr 2018 06:42:54 +1000 (AEST) Received: from localhost ([::1]:33317 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 1f8XRE-0005av-Hm for incoming@patchwork.ozlabs.org; Tue, 17 Apr 2018 16:42:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alindsay@codeaurora.org>) id 1f8XNR-0002px-Rz for qemu-devel@nongnu.org; Tue, 17 Apr 2018 16:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alindsay@codeaurora.org>) id 1f8XNP-00050P-Sz for qemu-devel@nongnu.org; Tue, 17 Apr 2018 16:38:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39114) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <alindsay@codeaurora.org>) id 1f8XNI-0003t3-L2; Tue, 17 Apr 2018 16:38:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A2B3D60AE0; Tue, 17 Apr 2018 20:38:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523997527; bh=UbUA2qAduCpBVkHW5MjGyr26VD7c507kIQCd4dlmDLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mP8Bb0fqKrBY28hJvUyoBomtXgZ9uTPPI2LEHmheeJktiLjnUZQl9QQhOofxdQ1Ih a7or7elC7Xm4bAi+vgky+ZJUN6MCcwbs4A/po562d0JFJThwwOaIIzt9LaoT4o3M8N TVidc+xtSMu2zM2eK0ybvas/16P+YxaEQd91TCc4= 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 02C0560385; Tue, 17 Apr 2018 20:38:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523997526; bh=UbUA2qAduCpBVkHW5MjGyr26VD7c507kIQCd4dlmDLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m9yBr4OwvIqYcyo54C62M8kOdRJiZfWtqQNUBqYD7DEAdUOKHOC6r4IYgt0GG3iM6 0yqslINzaQpXsKtRbelUTr/euV3S2aHSDiomaNxfWpYhkfOxWmkhVL89zIC0D/dTPk KwaDA6uxWZHfI2QE0xVGwiIhnsxOf3zp+v4rwU+g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 02C0560385 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: Tue, 17 Apr 2018 16:37:45 -0400 Message-Id: <1523997485-1905-2-git-send-email-alindsay@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523997485-1905-1-git-send-email-alindsay@codeaurora.org> References: <1523997485-1905-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 v4 01/21] 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 b14fdab..485004e 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; }