From patchwork Tue May 17 05:48:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 573441 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1f0e:0:0:0:0 with SMTP id hs14csp119161mab; Mon, 16 May 2022 23:06:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylijIoLVuGLxX/xCR4qC0tdzceHaOw8c83hbuLOogHwTgnX/wR3S/l58Mht1XII1cb9RDf X-Received: by 2002:a05:620a:24d6:b0:6a0:3b3b:966 with SMTP id m22-20020a05620a24d600b006a03b3b0966mr14943888qkn.466.1652767571101; Mon, 16 May 2022 23:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652767571; cv=none; d=google.com; s=arc-20160816; b=kEp0/W3Q3wFOQFfr5UAccfNd7WUVRTBSLSByKvhq3pt8YdfabyGSfELpM0ZhHzHa/6 5Y30pXl++GMdnR6N19k+0YXV9MZHYuiDs0WTHnZ1pJfE3qUkN/dGYv3Mam83ucrZ/dfs U8RcnZVvtDW5678Qa9vFui3UO/rGEGwkWpyzzATEIJSVrY/igSbmuAkRhP1QgovNchAb WTXIC3qT4MQrs1ssvCBZwVw4JU1pnRRrWbAHcwGa88At4ulvvyaPZF5SBRIvTAk89dVR 0kfwiiiKatbW/W8VRvUi4RjYOb1raopDJO/NVdf2eN9gMmUEds5Zhh3UU5sL92waWe+c LQyg== 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=PYU0IJ7DQ1ZCSTmibczwPnMNjyL8vgAIxmynl6oBiWZgeWjJbLMdk3r3rKEI/KQWEf 3oRUjr6lYXzKzIlw6Vfwt4D1FG7MFTPI02lrNyUBacNC2FDBjb0/9mlLyAjflsP/MvCM tOQbqOQtRVWwkXjjnTRuaZOJMZuYcQZWe4EWSg9wgrmsmCTvEOzAZn2DLEk5v/Pi8D6I trUR/y+kK2wcLWUcMGN8eTGk27Rg+XWlyvff9NrpHheR1Dwzd+oK+6sFSyOp9cvyCchx 1vIvZmCW92L8VDeXMTacHAqRJIASD/TsKr7fZ1umWZvVvxvVSjMwukwdYxRS0xRyAfmv RQ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ig4e2ZOl; 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 s6-20020a05620a254600b006a015c70bd8si8714572qko.667.2022.05.16.23.06.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 May 2022 23:06:11 -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=Ig4e2ZOl; 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]:56052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqqLS-0004aU-Gv for patch@linaro.org; Tue, 17 May 2022 02:06:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqq4o-0000Tl-P2 for qemu-devel@nongnu.org; Tue, 17 May 2022 01:49:02 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:38510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqq4l-0007ni-N9 for qemu-devel@nongnu.org; Tue, 17 May 2022 01:48:58 -0400 Received: by mail-pj1-x1032.google.com with SMTP id o13-20020a17090a9f8d00b001df3fc52ea7so1419833pjp.3 for ; Mon, 16 May 2022 22:48:55 -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=Ig4e2ZOlV6l6B/eekA8p2Y3WC7jOcp2Oi7+b0x8DuFvXpkFdWnbyciWeXw9ciEuL6W /XRl5XYEEaf36eqOY4Esw8pYTXuPcwzmi/wcv061oLLZhbHwFR+YCHA8JUJV/8koZdqv G0hqF4bKmEoGUC6hxGFiZOd3qJMxv8yXDDQTw2YWipv0Sw//+EwBoabhQm5R6QjPrLQL Yy+LLZGugDk+vDyCu0dCTSdeYLRJP0s9CwI4oL77bbp+uHhgkvrg/JW0zq9xnUFz19Tn l6lK+qwS/E3WXFWqBTtc22J1Z/0i8BWXVywCFSrdQtog3dpsFeERw0mN6j8F2Ox60wRF rT5A== 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=ruUI+I3/M4ckRyLf2f765KQfm2sCM5IE6sJM4s77hKD2AHUPXmR/DDmUJW3MmzB/WW GBctxYwvg/4guOuaKxyb8ek43RODxgoFctbUlwIBh6+Jlzo0Z8ScW4+zs3iU6EOFVT9t R9gJjfKoc/wVHcl8cLveGVrH4i4yo2vxEGrumkZtI+Z6mY9qmcQfwGtUb1BU1VeywKVB ahYFnOl9pT+S+O5i2t4Qm9R8M7KE22qEvVb3tBgici1icuzIMPnnbDeeSP8/2sqfWXnY pu3mB3J5GCrT41SdwNV5GvQB1lHM/RuXlbVlr3QxzAA13AcVAIHQdmDs7wsI0uA7h0Ut yBZA== X-Gm-Message-State: AOAM532hFBGNf/wiujBBry0KLdpaMMdM6UaQpB6Wq4n57lUD7TsCt7+F AJOFoBx0eMpamwX0ch29JyLYP+IV+rHSUA== X-Received: by 2002:a17:902:700b:b0:15f:a51a:cdeb with SMTP id y11-20020a170902700b00b0015fa51acdebmr20570976plk.137.1652766534418; Mon, 16 May 2022 22:48:54 -0700 (PDT) Received: from stoup.. ([71.212.142.129]) by smtp.gmail.com with ESMTPSA id b12-20020a170902d88c00b0015e8d4eb1fasm8146670plz.68.2022.05.16.22.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 22:48:54 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v2 3/7] target/arm: Do not use aarch64_sve_zcr_get_valid_len in reset Date: Mon, 16 May 2022 22:48:46 -0700 Message-Id: <20220517054850.177016-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220517054850.177016-1-richard.henderson@linaro.org> References: <20220517054850.177016-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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: , 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 --- 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).