From patchwork Tue Jun 7 20:32:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 579327 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp5494044max; Tue, 7 Jun 2022 13:40:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHLbnHMpKmT0705TeGaa+PeVN+0DkHhYCDuIv3J6mQF2VSw5j6j+KnTi8O+jlu83JxD6Qn X-Received: by 2002:a05:622a:c8:b0:305:78:8d6c with SMTP id p8-20020a05622a00c800b0030500788d6cmr252376qtw.211.1654634455718; Tue, 07 Jun 2022 13:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654634455; cv=none; d=google.com; s=arc-20160816; b=UufLrLM686Y9vy3shXjpiG3p6ZcdX4Ly2qy8BxWfiCWZCvqAGZYo3A8rqFa/yWGMxb nRXW4aLcki8eqna0tYuHJV8vEkLTju0m8HToFz1TMfIn4tIsvSfpOjChWpx87FtXz8Lf vunew5hUc2FfvmGdQaL7NalYgLORLmvGTHRyr75lJXtY0CUBXT3zFJvQMVgMZg2l1Efm bn0hSC+b0Ta/FuAysIC116ku+V4DB0WKadHk0+U6ansgK+gBVVGBafdS+GIT7pLdlYTI JiPkl3TzkVHwIN9n4lzks1NTo3jclzx5X9InGNz5jQp3t/G/DbDO72gUDVrMF6Ez18XE uBWw== 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=3ImGeL35V1VptULMhKWxD6rBwxNJOjwQ4O8lIdXg7Ns=; b=v89IKpghadmWzcBK+FbPW0YQ/bPreXtV2VrONFuTjX4PRneM63sv9Xb2gPLSoztmSi Lf3e4cIA/P1u3YyokgfgtNEVrJ/mxATo4DtYxmTx8yBIW0siIE1KUfxrtov5GSIIBtl9 gnIH1XuE52ypv0hiW6c8n+EzW+B064I6KWJrUneetistCUJernDrdfM1GASJZ0JFOvO5 FNCjr9uAJEqORm8QkrbtWYJhkckv0LxvpwolO+J5PMj+O0mvBRdfYe50UuVuSSp0/pUc W07+VIuP2A3IhISeaxQmGokISqd9uWDPyxpp+qWI0kWsBemVlWCzJ3NLEZTxfrEqruat 5lPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hHsUQU11; 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 fq10-20020a056214258a00b0045a97625777si9730389qvb.134.2022.06.07.13.40.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2022 13:40:55 -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=hHsUQU11; 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]:58322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyg0V-0003KV-9m for patch@linaro.org; Tue, 07 Jun 2022 16:40:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyftC-0007Sv-NG for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:33:22 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:39876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyft6-0007Er-Sv for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:33:22 -0400 Received: by mail-pj1-x1029.google.com with SMTP id q12-20020a17090a304c00b001e2d4fb0eb4so21871585pjl.4 for ; Tue, 07 Jun 2022 13:33:16 -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=3ImGeL35V1VptULMhKWxD6rBwxNJOjwQ4O8lIdXg7Ns=; b=hHsUQU11WBe7700oxpE76yF0K/G5HxsqeHGCcIv/qwNA4vrOltJYMAdqTJaNFnxUpB utbkimkUsAkmRarwyNcEME+3jK/J4p3+4dx4kXXiKOIXYUgOggTGLmiIHL8ou4qLH4yo I+2uXi1r7YDNsZo8UguXcxWwIxTXHg9ZMlK9TrWh1xGH1MxCtxfejHyhd0ZW20g3u9J7 Ts0fyo4cNhSVLWSrq7GxaKI7W3uwS2RS+ECyeOEs5QdFPD+Q1FZjVwjUv895obkRf8M8 iYQDrY7X6C+MPaHIg7FLotSjKKN8jC00b7ygVJiyjHyoW/QofzmSJcuLIrDnukUpOYIB m7qQ== 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=3ImGeL35V1VptULMhKWxD6rBwxNJOjwQ4O8lIdXg7Ns=; b=HIXlXR4gREGbocAbc2vinc4IwDLdsRiqFZNdsfzPeDlqXgvyXHWuLER+AtHloMAMUz PhnX1alqNCyxaifUACinkmkhMb8JfSEKNe5SldDpNCIIqnskM2rAghkUA2cAXkVuq0rC 9YuN0IRbfOGKVl1Y6lllTz82bgvK4em2YY7peZ+b35slOo0g83JYPeBrsSPL6UjvB+vQ pUyDycRFq6cgq5UOnS4Uh3pjz2QmCECDnrjMtKwZDPL6q82QX90m5ZXOJOLJEG+ihO3b b0GR2/7GDzLqIvg/0B0/7kTBVxhPd7NMGsPmoHqZaKE+fGfYlLPThUTtXt23wNmkBEit VkAA== X-Gm-Message-State: AOAM532kZUZ7+xWJ5Shc5V/k3f/VnTPA9GHAGk+i1+4Fu25gogHdbcqm ASc/+b3ChAUDL9kygNh3HOQ6/V2jp+8Sog== X-Received: by 2002:a17:902:b7c3:b0:167:7ca8:7f24 with SMTP id v3-20020a170902b7c300b001677ca87f24mr12468733plz.51.1654633995537; Tue, 07 Jun 2022 13:33:15 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:3cf2:c634:5b19:25f6]) by smtp.gmail.com with ESMTPSA id s22-20020a17090aba1600b001d9780b7779sm4227856pjr.15.2022.06.07.13.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 13:33:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Subject: [PATCH v2 09/71] target/arm: Do not use aarch64_sve_zcr_get_valid_len in reset Date: Tue, 7 Jun 2022 13:32:04 -0700 Message-Id: <20220607203306.657998-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607203306.657998-1-richard.henderson@linaro.org> References: <20220607203306.657998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- 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).