From patchwork Thu Jun 2 21:47:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 578128 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp946581max; Thu, 2 Jun 2022 15:04:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqWodytwbKWZGZe6rpjleHWrB4K/2Yt9rIuf9rQjUswLweiTfWl2O1FaJHkO9AOuonZUSd X-Received: by 2002:ac8:5d88:0:b0:304:df51:3504 with SMTP id d8-20020ac85d88000000b00304df513504mr76631qtx.497.1654207443223; Thu, 02 Jun 2022 15:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654207443; cv=none; d=google.com; s=arc-20160816; b=ZZe80OWa80aBuA2d1kCLb8qlT1TBOgHfwdbRtbSpSDeyRCmQS5+e/0kHInFeTwaXFb uj1dq0Hvc3CsMP9Qe6h/YylFSC8WTURj3kJdRQedUY6iLpghCC5DDaGBdpbJICQmnY9H dl5itFCR30CgpribB97BMj4XZxW87NMfOcY/YLd3dvb7LbMg0sBvy9M7gWI/0cIOmbSA FjYw6QYSmL0j6w3us+pxfhM3SZy6iLGSBa0MWBUa4AMyu87FC5i43k+7LHF7FteW07+B FCMOJq6d5hfV5YML4/32wKoJ9dhTEckPo30bpATLoVHp/uMyUokREjTAShbvEEPrNLQa TyTw== 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=9CQLR9+ZabdVBvj8yT9hoESiXzPxfvDoRGYhKlSAaF0=; b=D7ECyHD7rd0QHpynyLBPq/4Bo+PrBIPWv7Qr+Y1FDyjwD8THMtZtaTkQraLqBDus7t AcJUpCmb81Y7tX9w/6g12toWE/giaHwrZs3HgW2CNxwu2lSA56IePVBRt8aR3ExTr6NM CMJ+FcnZ6C4Ifkhdb5/PZnr8e9vX5Zj+xA3FFHOd4m7znqA5JMezJLAOq6LbSW8EuTo9 AQqW7OiBdmx/+lb6EBAiIajGb1NO3+vtIwJZXJ/rbigqnBcHQ7Jt+cejBkkRzxiAuEfm cRX0/BIkcUaBBH5cu0ilzlySmrtGMamsIBivGIMfQBO04V7k4bfXpV/2I4RTRFsALIoa 0ezg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bywEvkmn; 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 v2-20020a05620a0f0200b0069f6231ecedsi3254588qkl.545.2022.06.02.15.04.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jun 2022 15:04:03 -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=bywEvkmn; 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]:45204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwsvC-0007x4-QW for patch@linaro.org; Thu, 02 Jun 2022 18:04:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwsgk-0004aL-QJ for qemu-devel@nongnu.org; Thu, 02 Jun 2022 17:49:06 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:42892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwsgi-0008WS-H2 for qemu-devel@nongnu.org; Thu, 02 Jun 2022 17:49:06 -0400 Received: by mail-pf1-x435.google.com with SMTP id 187so5791686pfu.9 for ; Thu, 02 Jun 2022 14:49:03 -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=9CQLR9+ZabdVBvj8yT9hoESiXzPxfvDoRGYhKlSAaF0=; b=bywEvkmnIb7r7ZyRdZI97F7nc/D52jZRCdOtDo6VwfxJrbCe1kBxIg8dYCSiI5CXcr RfdnG0flMby4SkyKS/d8FYOalskgszDFWbv+OeQHNE8vXYRB/q6Q3UNoCgUY9EqmwBIG lLU0rZaFk58qNMNQMZJfvDb+bXwnhg6ijKs6FidUiL/MDb0RQn5q432DjvKz+7eINLzy IUVaExTTYxUdgVDhZ4E/jvap0NuWA1RmIiYVZElJadWbr1FAGg1mXDpsKXoCm5S7eXUs doTipSrO2Hp/NIehwvlOGatB27eeC34fJEO6fC+aKlfHLlqRJow7bSrlpBUtQhEzvbly cHmQ== 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=9CQLR9+ZabdVBvj8yT9hoESiXzPxfvDoRGYhKlSAaF0=; b=8Q6jvEmqyLJubv0Ws8AxViM/wiD0A4uq2xBjzbvXS+fVFXqFu4LgCzwHze2hQgfKm+ GaGMnjAF1ubzUDRyyGzCUYURd2DtrGqZY615w7yeP4IMN4+RDvw7fQIh/iL2bkcBDXQc tFr1piyTq5xPhV5BaSfYuBHP899f1jZduSDiIL31eBlb25L3wVwZBHjPwl6NUBQKpx8k RLSk5ia9ceJKSQRao3Sf9AUnWsoB9rDp1QNB2mGTNWYaocQimiSUvkTBz70qIs+bboZL yrU6pkPVdIIDLspmDnaWGXYyeYg9xqGs+f/+LAjMNFCIEzXi+Gv8GY+g0IyP27ygiAMq 9ysA== X-Gm-Message-State: AOAM532OUdeIfSnlg1jf/13re8iY4kiRarI5vfNWFTX8qSpC6tyjbtPU 3oDdyxkj0XlpV0prCwfoKtx4uugHZ9BINQ== X-Received: by 2002:a63:44b:0:b0:3fc:cd1c:49e8 with SMTP id 72-20020a63044b000000b003fccd1c49e8mr6061503pge.172.1654206542235; Thu, 02 Jun 2022 14:49:02 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id bf7-20020a170902b90700b00163c6ac211fsm3988760plb.111.2022.06.02.14.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 14:49:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 09/71] target/arm: Do not use aarch64_sve_zcr_get_valid_len in reset Date: Thu, 2 Jun 2022 14:47:51 -0700 Message-Id: <20220602214853.496211-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220602214853.496211-1-richard.henderson@linaro.org> References: <20220602214853.496211-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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=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" We don't need to constrain the value set in zcr_el[1], because it will be done by sve_zcr_len_for_el. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index d2bd74c2ed..0621944167 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -208,8 +208,7 @@ static void arm_cpu_reset(DeviceState *dev) CPACR_EL1, ZEN, 3); /* with reasonable vector length */ if (cpu_isar_feature(aa64_sve, cpu)) { - env->vfp.zcr_el[1] = - aarch64_sve_zcr_get_valid_len(cpu, cpu->sve_default_vq - 1); + env->vfp.zcr_el[1] = cpu->sve_default_vq - 1; } /* * Enable 48-bit address space (TODO: take reserved_va into account).