From patchwork Tue Jun 28 04:20:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 585465 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp409661mab; Mon, 27 Jun 2022 21:35:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjFKMlubYI6qFV6Xyxc0qULkCeY3x/W7LXyYDfKPYZ/irdE5P/M1m54orK2XztdYIhpqRs X-Received: by 2002:a05:6214:2025:b0:46e:8494:44c4 with SMTP id 5-20020a056214202500b0046e849444c4mr1115686qvf.84.1656390927766; Mon, 27 Jun 2022 21:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656390927; cv=none; d=google.com; s=arc-20160816; b=gjnD4zJzAFwVdP+QLmj06RrWGbP5tKjDgpKZzvbXtGuhsDaTaEds5paFMvxDJHeikx Ink8NU4dJ3EJv+1ln1RNVP4RwYpS1GsfcpRfmCfR7NoeB7nybiF7x8zdi+hKahSRGlng rcj7szZ8peK8SEWvMcx1Zd79erISX4mv20CuyzkIvZr7N8iE/HZTJri1T58MQA74y3la kjppD1CzTzNtzAIYx3frFeKPJ8lxQL3DFtYgJZv9QsTce/Xc70lpefyKDMQHgHsSKmo5 NahA/ni6msB487WfrzdN0UXo9mQBZsAZypoN0kg92wcUOpFKnQximhEYdp7GZiu3DXyI LB3Q== 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=1GgZc9nURd8Ki/xGkxNJXDBbrbUEmb8e2LeVeo/xY5Y=; b=wOtFxq0SMEw+v00hqX4JihOOi9gNZaWJtsLUagIx2HtsuqMfetCibiHE+j5VeOiDX6 0BSvwaSASX6FhQAbciS6wzY+45PoKpn6bklLjDDD6qpPC4cXdsNasGhpZFRgCLlzE8QZ CjPPQh+0kpmIgnTAYV5K0xrqfWTH5UyUAPwaULri3lPBnf9atILNrATCgPP51Q1HNdW0 8ksPZAQtje+k1815ecDli255wiMfuw+eojUgFh2quWA4u66piymxt2oxYfF/RB+rwRn6 OhY3ghFpEdQlPtBLdlo77d1Ec+bf9ZSOpi7DyKytog5aESgdZ9rgRpMZHgbEPg7V39zH nMqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ftzrPRJO; 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 o9-20020ac85a49000000b00304d877847fsi7214403qta.436.2022.06.27.21.35.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jun 2022 21:35:27 -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=ftzrPRJO; 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]:47206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o62wh-0003bE-BG for patch@linaro.org; Tue, 28 Jun 2022 00:35:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o62jK-0001Np-PZ for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:21:38 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:40797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o62jH-0003em-Vk for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:21:37 -0400 Received: by mail-pg1-x529.google.com with SMTP id 9so11009565pgd.7 for ; Mon, 27 Jun 2022 21:21:35 -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=1GgZc9nURd8Ki/xGkxNJXDBbrbUEmb8e2LeVeo/xY5Y=; b=ftzrPRJOXPNLUS1dzYc+neLQ9r1o+tLefWD+Jbqsdw1VUFuQ8I+iMFE7UtAXn6NJ9y AVGe4feLBC1pD4MGJd7sqNz0xbvUMG0TENMMwW4Pot13eDRz7Xql/3sQjZe04kDUcERZ 2NqU8QRH+MgNdzI4yXzisByRZ5GXhLzbenfTvdoUJ9Jsb7q/7byjyhRRTOQDlEbbh2ir 2tnyIYPYl1orOmFDHxW+VS6j7tHGE316Kev25aJx8m8BPAkgVFZeu9nUbvAVRJMVxztW xQkktUcaLt/cVJeomdvp1BK6I/YW9HsGQt9mVBSIaJAKZyw/ovM4dhS7wXMO5+L9+QmH iRvg== 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=1GgZc9nURd8Ki/xGkxNJXDBbrbUEmb8e2LeVeo/xY5Y=; b=HSMq6eEmvN7LLb/fo2vMhq+xxsoyXoksuQ7rQ2jDrc/NT7R6zrHrmmAexPgkBBmoEL jbUwVGxsaEBOAW8qSUR8bxNsu+g5T4KAwjiqdUOjzfxktKTu9TkEJEnubtC88QVvYdnk vPfncVIXS3VKRBKhlXcoFyblHjAdoHgwItzIpLHjj9XxbfzLMF9MPhDxToNalvx27ia4 ri3jv6NC6x6fjvx76uNCQtqzevO2Zlq+2R8m4SajIwju81n2lwwMtbZad7fk0E8O6z/r lgby3R46BoAOC7Fu5wX1rs1xv0jT56PpAq/BDkCVtbb8jKuPppPNljn5RLBoQ5gw9laS H6ww== X-Gm-Message-State: AJIora9CK4F82zD0vVi8ngf+C2/XFyttn876Fcp3YJ+m2U6z+rpY4COB VECa4z1J/MADdQypdMxli/4PtRKXfbjFrw== X-Received: by 2002:a63:8848:0:b0:40d:e25:dd99 with SMTP id l69-20020a638848000000b0040d0e25dd99mr15640890pgd.603.1656390094499; Mon, 27 Jun 2022 21:21:34 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id jg6-20020a17090326c600b0016a087cfad8sm7994929plb.264.2022.06.27.21.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 21:21:34 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v4 05/45] target/arm: Mark RDFFR, WRFFR, SETFFR as non-streaming Date: Tue, 28 Jun 2022 09:50:37 +0530 Message-Id: <20220628042117.368549-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628042117.368549-1-richard.henderson@linaro.org> References: <20220628042117.368549-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x529.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" Mark these as a non-streaming instructions, which should trap if full a64 support is not enabled in streaming mode. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/sme-fa64.decode | 2 -- target/arm/translate-sve.c | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target/arm/sme-fa64.decode b/target/arm/sme-fa64.decode index bce717ae5f..a48f164ed4 100644 --- a/target/arm/sme-fa64.decode +++ b/target/arm/sme-fa64.decode @@ -60,8 +60,6 @@ FAIL 1100 1110 ---- ---- ---- ---- ---- ---- # Advanced SIMD cryptography e FAIL 0000 0100 --1- ---- 1011 -0-- ---- ---- # FTSSEL, FEXPA FAIL 0000 0101 --10 0001 100- ---- ---- ---- # COMPACT -FAIL 0010 0101 --01 100- 1111 000- ---0 ---- # RDFFR, RDFFRS -FAIL 0010 0101 --10 1--- 1001 ---- ---- ---- # WRFFR, SETFFR FAIL 0100 0101 --0- ---- 1011 ---- ---- ---- # BDEP, BEXT, BGRP FAIL 0100 0101 000- ---- 0110 1--- ---- ---- # PMULLB, PMULLT (128b result) FAIL 0110 0100 --1- ---- 1110 01-- ---- ---- # FMMLA, BFMMLA diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 5d1db0d3ff..d6faec15fe 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -1785,7 +1785,8 @@ static bool do_predset(DisasContext *s, int esz, int rd, int pat, bool setflag) TRANS_FEAT(PTRUE, aa64_sve, do_predset, a->esz, a->rd, a->pat, a->s) /* Note pat == 31 is #all, to set all elements. */ -TRANS_FEAT(SETFFR, aa64_sve, do_predset, 0, FFR_PRED_NUM, 31, false) +TRANS_FEAT_NONSTREAMING(SETFFR, aa64_sve, + do_predset, 0, FFR_PRED_NUM, 31, false) /* Note pat == 32 is #unimp, to set no elements. */ TRANS_FEAT(PFALSE, aa64_sve, do_predset, 0, a->rd, 32, false) @@ -1799,11 +1800,13 @@ static bool trans_RDFFR_p(DisasContext *s, arg_RDFFR_p *a) .rd = a->rd, .pg = a->pg, .s = a->s, .rn = FFR_PRED_NUM, .rm = FFR_PRED_NUM, }; + + s->is_nonstreaming = true; return trans_AND_pppp(s, &alt_a); } -TRANS_FEAT(RDFFR, aa64_sve, do_mov_p, a->rd, FFR_PRED_NUM) -TRANS_FEAT(WRFFR, aa64_sve, do_mov_p, FFR_PRED_NUM, a->rn) +TRANS_FEAT_NONSTREAMING(RDFFR, aa64_sve, do_mov_p, a->rd, FFR_PRED_NUM) +TRANS_FEAT_NONSTREAMING(WRFFR, aa64_sve, do_mov_p, FFR_PRED_NUM, a->rn) static bool do_pfirst_pnext(DisasContext *s, arg_rr_esz *a, void (*gen_fn)(TCGv_i32, TCGv_ptr,