From nobody Wed Nov 27 07:43:51 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1699808269; cv=none; d=zohomail.com; s=zohoarc; b=XwjP7wbnC8IVmUwq8Oeofd5ZnhzE72alvk1cQVKkptpzPPFBiT3ACBexc6FjS+9lYaOPHcoFd9EJad1+6dmLfHkxtNT55sdnHn4zI5GsewtXYASyFst8NagTiF4QpFPg+EOK5er5W6Tlm/nWJsnfoAOY49rMuHFF96tfjk9UwqE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1699808269; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=c/gV7WEkCFV29r9cbDCSPIqL1KG65x+4nmaMeydEVPg=; b=gqYaSKdOuQV2uKxjRTgmdrwOON+2+yCd1kQyQw9HdCer57yu7bAkOUaBvcEmKnfdi3hxdVPieIRjp/bBTDEwYCNQ6OXtrg15GkdyRRke/jTOgTMtR0o1WsO+2c4sMCzUKhairJSduZdN/6oivxZpiY66Sx2L7W+1/wGJprTUCm4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1699808269043597.8158542065094; Sun, 12 Nov 2023 08:57:49 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2Dlv-0006oL-Ou; Sun, 12 Nov 2023 11:57:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2Dlt-0006hS-K9; Sun, 12 Nov 2023 11:57:17 -0500 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2Dlr-0001zp-UG; Sun, 12 Nov 2023 11:57:17 -0500 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-507a98517f3so4778003e87.0; Sun, 12 Nov 2023 08:57:15 -0800 (PST) Received: from localhost.localdomain ([176.120.189.69]) by smtp.gmail.com with ESMTPSA id t9-20020a056512208900b005056fb1d6fbsm662044lfr.238.2023.11.12.08.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 08:57:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699808233; x=1700413033; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=c/gV7WEkCFV29r9cbDCSPIqL1KG65x+4nmaMeydEVPg=; b=Y3XJGqBvGbvJBh95Njj7kLCZ/BUKz9XtYPg+XLLFLcqByYMf2BqX6GQJRLUQmBafhL xOjchEmoDHNMnAAAfrVFcpbi9z479P9adDGylsHvaXS40HHAVAyJOPrFy66F/IuuKi9w NTPRzhLlTUpV9MBTnHKInj7qhcaTTKeYonmkc4g7poXz4MAy8zjh2gi0FRlnI2AL0haK CM1bKJmBXE8pjEssVvxlXuI8dckP9fegzGa8yI7/zlKSpLayFZ0Go/uLE2tJj+7lW2yK 23+iUC0xIjSAFXd9yxzsCxGtBTZrHujdkZgBo5pT7KHFzC3Mc7fq0czn2hbu2RWdaB9Z eFcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699808233; x=1700413033; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c/gV7WEkCFV29r9cbDCSPIqL1KG65x+4nmaMeydEVPg=; b=TuKK2H4VyVPBmI8W5umL8uNHszbbf8i6GPzNjFB4ntOigRvdH50GsshCDLeEwMN9GO OxP7gMIllyJiBAs4itggDhLOupcoYSotDDI0VGq5plYcbDVYsGoHMqP4rcif1wIInscl Iwe2MhIB3KFOzws9mwoQnICoa60gQTWv4b1lDL6MbH3taedbeLW5X1vZOJAOZs/8Mpum WW8i0gY4ydPEa5gEcIasr72xzB+knEltBIuZW77V2kI2aXB1qTYDnwVd35HuZne+tua0 AeHqshwHFzx18OdLVW2ysl/+58miCQ835H2cwKY5u2Whp4VgiScwXPBGrq+PMeob/jmb kdvQ== X-Gm-Message-State: AOJu0YzEl0G99Yf9t2LLcjcjoWEDFZi9XYM0cRs9BvbVayED3jfrMcrA tW+Sx62hEzjaYX6k0JjiZ7ZPRPByOLHxus+G X-Google-Smtp-Source: AGHT+IFe//lfrK4WeIovK1y7vAgPZ6vV7ORA0E5xd6NJzEJaQBXl7q+XY6SMHUS4mvPVPaux4Xh+EA== X-Received: by 2002:a05:6512:2313:b0:50a:756d:4105 with SMTP id o19-20020a056512231300b0050a756d4105mr3069221lfu.12.1699808232598; Sun, 12 Nov 2023 08:57:12 -0800 (PST) From: Nikita Ostrenkov To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Nikita Ostrenkov Subject: [PATCH v3] target/arm/tcg: enable pmu feature for cortex a9 Date: Sun, 12 Nov 2023 16:56:58 +0000 Message-Id: <20231112165658.2335-1-n.ostrenkov@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=n.ostrenkov@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1699808271233100003 Content-Type: text/plain; charset="utf-8" According to the technical reference manual Cortex A9 like Cortex A7 and Co= rtex A15 has Perfomance Unit Monitor (PMU) https://developer.arm.com/documentation/100511/0401/performance-monitoring-= unit/about-the-performance-monitoring-unit Signed-off-by: Nikita Ostrenkov --- target/arm/tcg/cpu32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/arm/tcg/cpu32.c b/target/arm/tcg/cpu32.c index 0d5d8e307d..0008c3f890 100644 --- a/target/arm/tcg/cpu32.c +++ b/target/arm/tcg/cpu32.c @@ -418,6 +418,7 @@ static void cortex_a9_initfn(Object *obj) set_feature(&cpu->env, ARM_FEATURE_NEON); set_feature(&cpu->env, ARM_FEATURE_THUMB2EE); set_feature(&cpu->env, ARM_FEATURE_EL3); + set_feature(&cpu->env, ARM_FEATURE_PMU); /* * Note that A9 supports the MP extensions even for * A9UP and single-core A9MP (which are both different --=20 2.34.1