From patchwork Fri May 27 18:06:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576531 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp868358mab; Fri, 27 May 2022 11:12:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAqS8K6ziZbahvsC4uPWzLw0gOJVL62eeKYpQNITkVTvUJ/35LLcJIUhbFFBZ2z3QSJAa5 X-Received: by 2002:a05:620a:458c:b0:6a5:b92e:7406 with SMTP id bp12-20020a05620a458c00b006a5b92e7406mr5896522qkb.387.1653675143551; Fri, 27 May 2022 11:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653675143; cv=none; d=google.com; s=arc-20160816; b=bsu8SG7CoSV5fQ3hnBmIGF5/eziM28PyIWqvz0B6uPMMzR6yI2bgGcXDwaVh74enmq YbYrpvwiEfFhYyzkDmu4ZL+XnG/QXjYV8hfC5BeOq9OikEZmu+/QZR5cziyBYbOh43lC eWhJnCK6obkWJybt2rgTjXZgH8anMrACJtf2P8KJsY3BgrMCglsU9iIzi/xZm6WbCW6A BN8IQoxwGBu9CtgFagA34CJA9J12znYC0F8IO5mf9/D1Ww73/UoJ/fD5pgPunwtOrKnP nZlIT1OikGCmnSrP7lRQyeoX+zFZcvO1PCOBCL96xerF740TdB4cfaqO7ExgMG1Ezc5o cJjg== 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=KGG6q9yq9NmcvELLiNy0UZOrnRbtJ8J+bSh8G836x1yXe2UP9MAL1o8auihNcrni49 /ygDF1m1vlQkpjaksV1LKgpdVDvlH/lMtZQqM7g84/eHJ2UyHGWCTy28ko106Wr13YkA 5asD7uHLQyo6ig47NKuFo2D5AFPYv/8Da+gouqeMAr0u9HeZdSER00y92bLdhNJkCK1R NvilmxcJ1+SOjX/YG/I2QGGoMtQBsMXvFGS/w8NlitXtqukdEfouR6kkoU+Bps5bwaOQ rmswYGBFO/b5uFTLbqPV2PpIvhInPOB7yWbBd+Rmta6oz3laRAPihzrARaSU188e58Gq 7bFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mt03msyw; 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 bl21-20020a05620a1a9500b006a5e536e426si1098162qkb.442.2022.05.27.11.12.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 11:12:23 -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=mt03msyw; 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]:56236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nueRj-0001SL-53 for patch@linaro.org; Fri, 27 May 2022 14:12:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nueM3-00031h-Gx for qemu-devel@nongnu.org; Fri, 27 May 2022 14:06:31 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:41716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nueM0-0001d6-TK for qemu-devel@nongnu.org; Fri, 27 May 2022 14:06:31 -0400 Received: by mail-pf1-x42a.google.com with SMTP id p8so4944831pfh.8 for ; Fri, 27 May 2022 11:06:28 -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=mt03msywCe/dPxaEu9GJ/sl3afRG3iu3cN3mqRMbZBcOiTQfRlzRD+xqavz2uQwa2c VngJAKod20t3pBPIHLQfus41+Kij+T0ZyAskqGkkX560L400DY/VgFIAEVOhNWmJmbVI 7buJGsyaH8Ityah1GHjFQGDVCQzPASiN4FPMFh2H8kTAFwgdJfRs/gjVjQ36rxa1eEJw GYKqpLa98vMbRCBCvBsk1lz1gK4pHbjl1/EYuO94xMwaEzFVxVPZ++4wMzvGHbdOCL8S unY9donK+oUigcxumKbNnsyYxg+9WXI3F+FVuQejSdbb3iEXtJM+AFJKlpEaiROaknNg zIAw== 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=ZYpO4XVHgVo3xt/vejONB+9/a0lysWUsao1eCtoKLOkUwTpTxwW9vOpPrurx5PUV6M RzHvc2k1XsrgFUXA1AsmtG/MrgRu2qDADltYifS/7Q7UyBRj7/0sx5iQ3mD0rsxLvY9S 21ZoxlM/H/bPzOtf9nvmrUvLe2nsI9YHPnQIS4Z0i5rDL7O7sc5olRgTmFq6FscrHdOL JzRVjr569KyNw0UzQCEUqHqMmnUw80Jrk3z7BnvHThqZwfHPlrJ6xZc0DhuSLtCEBY8B W9qLV3M3YI35wlkwDeFFObMGC5Vf2SiKEcvjk0MERFPAy6Aw3K3NjxXROsbGoqY2quXM JPrw== X-Gm-Message-State: AOAM533flmPSoZnIh9VNfXKy73R6rU7+UY7e0UfQKZssGqfGDS/+zGv4 Z4RIMftGPz9xdqB9emiFPW27kxv7Pq45nQ== X-Received: by 2002:a05:6a00:238f:b0:4f6:b09a:4c63 with SMTP id f15-20020a056a00238f00b004f6b09a4c63mr45411028pfc.35.1653674787327; Fri, 27 May 2022 11:06:27 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id e10-20020a170902cf4a00b001618fee3900sm3934492plg.196.2022.05.27.11.06.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:06:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v3 03/15] target/arm: Do not use aarch64_sve_zcr_get_valid_len in reset Date: Fri, 27 May 2022 11:06:11 -0700 Message-Id: <20220527180623.185261-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527180623.185261-1-richard.henderson@linaro.org> References: <20220527180623.185261-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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 --- 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).