From patchwork Sun Apr 10 05:57:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 559488 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp1589283map; Sat, 9 Apr 2022 23:10:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqGyVmLXk+jUfT11NJRC68js4o8bZTBIooYW0fM3yYGj1mevBqBzNjQUyqeqtMA4g+uXWc X-Received: by 2002:a05:6214:dcf:b0:444:408e:24d5 with SMTP id 15-20020a0562140dcf00b00444408e24d5mr502829qvt.22.1649571038999; Sat, 09 Apr 2022 23:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649571038; cv=none; d=google.com; s=arc-20160816; b=FBuZMuTMh845cZE5T9rrEKggx7vT+8EcaKhoHFDq8FjurU4AhhwaRgEdhuHwbk5ZQG oDRW7Fa3IuKOtRg69+coUYVTQxrJHHHjZifkNKcf9LlwJdbynt+3yzDimdS5HwQyz3Lk 3hyvFOX3bXl5i0ARJEbBq+VvvyoYK9ucDBpi7iAXk3VHzDB8DsMLBXKol2pMWnoZOlZ6 xBsbtBm/3/r+ZEylxMZA3fXGjeJlQHVj8p5qt1gOKSiKoy48dm/FoBU7BzMjsS+ixieB lIfnA4hcyBcXUzOqZvdoTyV6A6+3bVqGNRQciL9X5pmlFfJuHHFB+xSmRApgv+NCkMlx oI6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=BroqQ5N0uu4nZwWtW7xJ22ciYDILNp0aXNIR5uju8Ao=; b=KeOG38xkxMvrKAWFVHoYyKXWCM63rNs0GgXWsz3xGrVns64VqkEX+386WDznYDcyfO pipwa/UvjevOD+1RUx8JG9yoAi86e6dVu30rrlSwHVlux7xg1YDgX13TE3eG8N1Y2+Oz lqQVWMHqGkkPJeWpMM3trwfvKPeysZegI6z2enAd4UInuOx/ceNk4JN7XnvABmMwFgOq Ix24oT8CEGPyiCw0uZ1s77bAaR5t51UaHb1NDhiEypxNauTTB7WCuTcgho76isgs7jB6 0jpjgWHb7kUx9aXi98l36odtOoVOwef1mXGmzsRa5k8Xu1zYLrPCWAcTF8Bl5qWkp+2h dZbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uhto1k+d; 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 195-20020a3703cc000000b00680bff1dc36si2423614qkd.620.2022.04.09.23.10.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Apr 2022 23:10:38 -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=Uhto1k+d; 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]:55002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndQmU-0004jz-HW for patch@linaro.org; Sun, 10 Apr 2022 02:10:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndQZp-0001z7-Mq for qemu-devel@nongnu.org; Sun, 10 Apr 2022 01:57:33 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:42629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndQZn-0002zU-HV for qemu-devel@nongnu.org; Sun, 10 Apr 2022 01:57:33 -0400 Received: by mail-pl1-x62f.google.com with SMTP id s10so3820034plg.9 for ; Sat, 09 Apr 2022 22:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BroqQ5N0uu4nZwWtW7xJ22ciYDILNp0aXNIR5uju8Ao=; b=Uhto1k+dAOduyX7/+XOokKlwX1uZlDIdJNMeskp+/DoNbO8Hrv/cToki9dPW8M8mpl P7IAiGFBT6CoVNcB2vc25q6v/iQx4ntL10lmZTVqVobynJNoQfwrn+c7VpGj9YFOcf1H Gg6WmOqKKQNjAcZEGzHGXvm1bYif2J5upgwCKiMIQxXVw+wCcFPMc7SZ6Ac9vhsdK/aV dr4oaLEbB3xaFDqOXt65HI3rGnT1qHd5woW4UDzzaDZwVsYLx+7sRYjEo3mfZmDKprXv EJzoiCRxhtoSbmFWVEApDgIySS0Z8gkl7vs/J44Lgask6oyDkxQ3kJHd/WIf3JEr8VLA nQIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BroqQ5N0uu4nZwWtW7xJ22ciYDILNp0aXNIR5uju8Ao=; b=Osq3luPNPFalGq5mHbj36uabBAPtd6bbjiDw/PygIXCc/C5LEIgLE+GG11U85Offmx R7iQggbg5WDqZie6r1OSN1vnNnTFfAOxWmDkFD/oDmHfDms+sfDa1Z82hc76Y+bO7w98 GthSjiKDPNuuK5ir5YtDAOBenPv4ps798R/AHg01YEYJY0w44SoltDVrCTLQBKS5sQea OTkXPyiGf4iemuxfgfez4yENjo1Vht++Q911YSFBxXEAIsuCXfmkMW//HX85ZwYsnH32 h9D+GksR82w2SPgkF1UUpkgzJo6A53zMLJ//N+RXtg7PdBjDV/K3vnN4vth3u3E4rFzE BOsQ== X-Gm-Message-State: AOAM5334zXKrNLDLPBZgCrE7x4rvjLXpODyfogEYLz4K+IUliX/r1DIK Uhwws8I7hWuQDmo6tQPkeFIYltwl2JCVJw== X-Received: by 2002:a17:902:c403:b0:158:5831:4e0e with SMTP id k3-20020a170902c40300b0015858314e0emr986597plk.134.1649570250214; Sat, 09 Apr 2022 22:57:30 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id l18-20020a056a00141200b004f75395b2cesm30481862pfu.150.2022.04.09.22.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Apr 2022 22:57:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 4/7] target/arm: Enable FEAT_CSV3 for -cpu max Date: Sat, 9 Apr 2022 22:57:22 -0700 Message-Id: <20220410055725.380246-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220410055725.380246-1-richard.henderson@linaro.org> References: <20220410055725.380246-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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: , Cc: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This extension concerns cache speculation, which TCG does not implement. Thus we can trivially enable this feature. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu64.c | 1 + target/arm/cpu_tcg.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 9ff08bd995..a0429538cc 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -806,6 +806,7 @@ static void aarch64_max_initfn(Object *obj) t = FIELD_DP64(t, ID_AA64PFR0, SEL2, 1); /* FEAT_SEL2 */ t = FIELD_DP64(t, ID_AA64PFR0, DIT, 1); /* FEAT_DIT */ t = FIELD_DP64(t, ID_AA64PFR0, CSV2, 2); /* FEAT_CSV2_2 */ + t = FIELD_DP64(t, ID_AA64PFR0, CSV3, 1); /* FEAT_CSV3 */ cpu->isar.id_aa64pfr0 = t; t = cpu->isar.id_aa64pfr1; diff --git a/target/arm/cpu_tcg.c b/target/arm/cpu_tcg.c index 2750cbebec..31ea5a90e0 100644 --- a/target/arm/cpu_tcg.c +++ b/target/arm/cpu_tcg.c @@ -77,6 +77,7 @@ void arm32_max_features(ARMCPU *cpu) cpu->isar.id_pfr0 = t; t = cpu->isar.id_pfr2; + t = FIELD_DP32(t, ID_PFR2, CSV3, 1); /* FEAT_CSV3 */ t = FIELD_DP32(t, ID_PFR2, SSBS, 1); /* FEAT_SSBS */ cpu->isar.id_pfr2 = t;