From patchwork Fri Aug 11 21:40:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 712624 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp103651wrp; Fri, 11 Aug 2023 14:42:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2AJfNdx6EZwjvHjX0rVsJhX8PK3l2lQP0JOWkQyZbB80E4myQWgW/EpI19nq1CiSV/uK1 X-Received: by 2002:a05:622a:15cd:b0:403:ecfe:2ddf with SMTP id d13-20020a05622a15cd00b00403ecfe2ddfmr3994761qty.59.1691790154969; Fri, 11 Aug 2023 14:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691790154; cv=none; d=google.com; s=arc-20160816; b=zg2lY0BRg8nkh+FzsigN5fw1ECFcLvNzXAC8VvaLAhypb/BN/6NDU5XXx9QkreH/0f u032d5eUQ76QiB39wWGSf85DPzHCF6xxZtRZFD+J2jgCbaxjTzrb9b+1usdFhyzNZpiL f3c4UQ5FOg1ufRHgWxLmYyejAdkIW1U7Gro9q0Y1c5zRN60R9vdXKZQmFMaJ3UPNOABx vT3s28HmuStyetpTJkcvqablCe5kSNck02MuReRifa94Gb7AQoMl16M1mQ0kmFyyWp+u I1/vZ06Vt3MaqSFc/5pr3+k6gHVtsLcHXzAgCdz0OhwOncSV5i8ljzCz3NAksBIPNasv WOwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Qn8yFftrxEzFHRpsLAJ/ue+KyTKojTWWz5oD7VvEO7I=; fh=oweadga+1U1BKjDqlK8hSmEWEC1EUfcsKuPkDinEDsU=; b=PFPWrkclTCtE/nbqbsH7CBojEPLjjCJvf+A70UfDeO3A+ZBJGSyV4fS+kGpPWYm28v 0LI0O2k5cOwHwHhtxnpll7jUXuMc16+e2bv2ND56yq3VQ6pttAabSbHbUsKA0LMu9CQk O+qeWZouXweDoQ160dbqQPNVTYS/sXVNCbrhMmSLF1dQbU6Tik7dEX49Ng2O9YUR9Hls Zwep2+KLz1+YHkMtoGjZjd117zM1kwXEWy63oRFpbVB3RE0/IERRb4JBQ8vF+1WCJdQB 7bVxHlHqwL1KG2BKCfxKvKtPEkaQQxbuVTklMZLF+q+THcwaF5i6n0yyYvF1q5Dt6/m/ 77VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kefcNVh0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p20-20020a05622a049400b00403a9d38455si2896350qtx.633.2023.08.11.14.42.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Aug 2023 14:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kefcNVh0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUZsI-0003Bs-36; Fri, 11 Aug 2023 17:40:50 -0400 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 1qUZsF-00038N-Fz for qemu-devel@nongnu.org; Fri, 11 Aug 2023 17:40:47 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUZsB-000293-CN for qemu-devel@nongnu.org; Fri, 11 Aug 2023 17:40:46 -0400 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-267fabc8465so1450498a91.1 for ; Fri, 11 Aug 2023 14:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691790041; x=1692394841; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Qn8yFftrxEzFHRpsLAJ/ue+KyTKojTWWz5oD7VvEO7I=; b=kefcNVh0oqfXtAyNZ/1m3UKENF/tryUjFFWwcXqQNRS0LgVqpKCJMjTobkP++fYypF dvRB/O8NJmPpy8i4KKOYZD3ncr8k9jLi+FmoFCtnKFskWsZ+cezKhlrsu354m/aExfAQ PL1uhou3YeQHw9VLbepuU92AFNjbh0hvQ609j2PECuj5AWdKRwGB9yNwajFcVmAR+EXS /j0Sotv3TjzG8PJNeNi4Gz2enkLnXV/jiM7NN/70N7y62jg4bU4J500u/B7UY4WhqeyX ROX/tClNffPR+Mi3CK9hjSjOBYxmsP0HtlkpMTAbqJ6j9HcAkIfc+QAeZNYEbmpj+p3s l/aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691790041; x=1692394841; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qn8yFftrxEzFHRpsLAJ/ue+KyTKojTWWz5oD7VvEO7I=; b=VQJAoy4Ywmk2E1CtZ/SgOCbiKh9TrXF3YURdc4K5LwGeCJQZ3Nu94Ru7RZM0CULB74 5l47EmGRvj5bSIHkKaA2HYGWXSGTDY+RmCFhHCGGPLPQWQW6PfovHnuxiyhgdX1rgwxW O4a+OOGc7fpSYg1n+Xy1m47p8VP34jj1lqwwtFx+Dbbv8Uj2lJeuikQ0xIE+Fxct4bp4 KYHl7gcoL3t44MsgSdxePieoigOsB9FRvUEoqWu10fSHQWpYe6hyhH3YuuxA7FpJXGhT LrryS35Mlynz/dnAN7439xV7jUnaY571wchw30k/ucj5IAlCbwJy5nrGJbqDWn22ARpZ +66w== X-Gm-Message-State: AOJu0YxvjObQ3FVIhaMKWeT9W+b36VKNxsKj4BK/oIPk7AiukX88QjmL XfdcxrnrxpSKqt2rpazploXKItk3UVn4lilnzyk= X-Received: by 2002:a17:90b:1d8a:b0:267:f223:3732 with SMTP id pf10-20020a17090b1d8a00b00267f2233732mr2323926pjb.28.1691790040971; Fri, 11 Aug 2023 14:40:40 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:e773:351d:2db2:8a8a]) by smtp.gmail.com with ESMTPSA id gk18-20020a17090b119200b00263ba6a248bsm5723840pjb.1.2023.08.11.14.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 14:40:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v2 09/11] target/arm: Suppress FEAT_TRBE (Trace Buffer Extension) Date: Fri, 11 Aug 2023 14:40:29 -0700 Message-Id: <20230811214031.171020-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230811214031.171020-1-richard.henderson@linaro.org> References: <20230811214031.171020-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Like FEAT_TRF (Self-hosted Trace Extension), suppress tracing external to the cpu, which is out of scope for QEMU. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 85c02308e4..43c5ac6456 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2088,6 +2088,9 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp) /* FEAT_SPE (Statistical Profiling Extension) */ cpu->isar.id_aa64dfr0 = FIELD_DP64(cpu->isar.id_aa64dfr0, ID_AA64DFR0, PMSVER, 0); + /* FEAT_TRBE (Trace Buffer Extension) */ + cpu->isar.id_aa64dfr0 = + FIELD_DP64(cpu->isar.id_aa64dfr0, ID_AA64DFR0, TRACEBUFFER, 0); /* FEAT_TRF (Self-hosted Trace Extension) */ cpu->isar.id_aa64dfr0 = FIELD_DP64(cpu->isar.id_aa64dfr0, ID_AA64DFR0, TRACEFILT, 0);