From nobody Thu Apr 25 19:15:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=fail (BodyHash is different from the expected one) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1579000121911913.7808517352444; Tue, 14 Jan 2020 03:08:41 -0800 (PST) Received: from localhost ([::1]:36998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irK3s-0007PJ-1x for importer@patchew.org; Tue, 14 Jan 2020 06:08:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47599) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irJvn-00084n-En for qemu-devel@nongnu.org; Tue, 14 Jan 2020 06:00:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irJvl-0006Ug-5V for qemu-devel@nongnu.org; Tue, 14 Jan 2020 06:00:18 -0500 Received: from beetle.greensocs.com ([5.135.226.135]:39838) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1irJvZ-0006Ni-TQ; Tue, 14 Jan 2020 06:00:06 -0500 Received: from chartreuse.bar.greensocs.com (chartreuse.bar.greensocs.com [172.16.11.101]) by beetle.greensocs.com (Postfix) with ESMTPS id 4852196EF0; Tue, 14 Jan 2020 11:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greensocs.com; s=mail; t=1578999603; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cloNL1VrTlkhCC6UnZZJThf+E4DFKBoc5EfntjStdqo=; b=dDOPSdNsAQCjW9r/uyr8fBSQgpCH5gpLr1w3zT87aCHwbOmCVj2rNRvFTEGOWj2t9Q4gpp pV1LgwkoLNVMbfupY3sLs5Rcpf9N6JgHgxnF1EAqHMjV796GB8+/i8ZYyyKoLELeSKsJ+4 DjcOtjTrn3byYdVWtzsxjZfJzAXCIjI= From: Clement Deschamps To: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH] target/arm: add PMU feature to cortex-r5 and cortex-r5f Date: Tue, 14 Jan 2020 11:59:18 +0100 Message-Id: <20200114105918.2366370-1-clement.deschamps@greensocs.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=greensocs.com; s=mail; t=1578999603; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cloNL1VrTlkhCC6UnZZJThf+E4DFKBoc5EfntjStdqo=; b=364B+66qvjcdhvbbo0/4rzpG43KCVxq/1nKMyoivs+98cp4HGUsqogsR2dl8yE/zMNs1J1 6suFj7wP+fkoauhNYUMaTDgyDRyZ5uS0id9ucDtQqqco5lOT7hwQAoHp3+ikkySgYp8h/4 68jZL4LqhWckL+YY0Pqlr+LsnZa2HsI= ARC-Seal: i=1; s=mail; d=greensocs.com; t=1578999603; a=rsa-sha256; cv=none; b=0iUNkvtfSNeovBu0JCjXzcbB0dLQJiEO5/2oKJ/t0/aex51hViz4jH33wMncwuAxiVUifL MZteASG+s4VrB3sjkngS000mtxWFhG7TUeCkQ9R8eDXIurvbe+lxvDjSGTKE0EbCDfb9r9 UZ1iLQpAQY9piNDbqRfhWvHZbZcqa2Q= ARC-Authentication-Results: i=1; beetle.greensocs.com; none Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.135.226.135 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Clement Deschamps Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Clement Deschamps Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- See cortex-r5 TRM - 1.3 Features PMU is not optional on cortex-r5 and cortex-r5f --- target/arm/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index d62fd5fdc6..64cd0a7d73 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2121,6 +2121,7 @@ static void cortex_r5_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_V7); set_feature(&cpu->env, ARM_FEATURE_V7MP); set_feature(&cpu->env, ARM_FEATURE_PMSA); + set_feature(&cpu->env, ARM_FEATURE_PMU); cpu->midr =3D 0x411fc153; /* r1p3 */ cpu->id_pfr0 =3D 0x0131; cpu->id_pfr1 =3D 0x001; --=20 2.24.1