From patchwork Tue Jun 28 04:20:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 585464 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp409559mab; Mon, 27 Jun 2022 21:35:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sx/ULCo/gmHhe/TmkwfzSUSNHRYKoDqr20ijDnst59HdcakSFjur5M5aiKiw+TZbKdZU5m X-Received: by 2002:a37:b706:0:b0:6af:3802:e92f with SMTP id h6-20020a37b706000000b006af3802e92fmr3753355qkf.386.1656390916175; Mon, 27 Jun 2022 21:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656390916; cv=none; d=google.com; s=arc-20160816; b=jblzB5vC/9CCsPjrUFu/KO5Nc4N2bAk4DCJ7L430A2Zn8CquYbdnk5br1hOmvL5X4C 6+1Nm+XrA81ZurGaHIUjyKj1MU3ilpesx8GhEUcZeW8B1e1/kBuv9Cdw7IbfV7uclfxI Q2u0mx3WsElGtZ30R9GikFbI0qGqTFC1nQME5DLq9ievIU2MMzWt5EQyuoEVNYF8CfB3 RYiAZAe3N3kYZKjVZtDBrV/ApJHx+ZTVgcseWbg3pQj//IWypxIv2/IZnt1iRie9+Rb6 5a8/u2uP4HIXeOzN3Mm37Z4K3LZY6QVmeBXeUTDyLh2woeW3d39SthNaCI4Bll5JCAHN duWA== 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=Olqir63f5/Kf497Jw21bcj1fKrQr3VFFu+FKw75pZwk=; b=ud46CnRQoDtF17voDwZoEMRVxnYFPOdEU78ZZPR/MCgW+tUAZHbMrU35afrWzmIzVb CLdMuncxBrlx8bIaEYVvc+KmPYpTA3HRTJyujcbrCC04HVHFNjWHGQ3Dpr4cTz/PhF+A SqZeQyRFPIEYsiQf4Z86+mfaFSm2mUpsoZLhpK6BvELPIksZatG4cpNaJJCd/KkqC5iI rHPSJWot14OQcpJ4AbGppN1Q6lEvMVLU/k+qPvqA8PPgvGuIjEV94BlJX8B8vlI/mhfV RKu35HNLol+FN575bt/EjD4PWuY94w9CO0DQLgpryjnNvAveVvfKfr11jljvcSWNAHlD MkXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bfYhMfmL; 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 f10-20020a37ad0a000000b006af33e5d580si1587320qkm.542.2022.06.27.21.35.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jun 2022 21:35:16 -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=bfYhMfmL; 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]:47028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o62wV-0003Ty-OJ for patch@linaro.org; Tue, 28 Jun 2022 00:35:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o62jU-0001Zz-Ju for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:21:48 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:36576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o62jS-0003gy-Qc for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:21:48 -0400 Received: by mail-pj1-x102a.google.com with SMTP id c6-20020a17090abf0600b001eee794a478so3905963pjs.1 for ; Mon, 27 Jun 2022 21:21:46 -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=Olqir63f5/Kf497Jw21bcj1fKrQr3VFFu+FKw75pZwk=; b=bfYhMfmL4GOvEmNB83NFv7ZbJn2xG2jPRxrvf1Ex9XozX66c1VdDWvm3QbDm9OxsEB F+C4EaQeg/NjWGq3wQPZIx9qdO5RvjiC5JvRkliREU4nzcf/tUBnHfAKl7tsHsmXfMYz vfygeQty2mWCRBKtCYPFNBiwCFCekmOsBrteKfY23RwffBxYCluMLXUdUPAaFc0DcnIr NWBegp7XJ8pPJ0XZ4wM8e4XU4obUkXcmCxn7qDKzO3G91gl3QLQsYK6gFlyIYKhY3T1Q yBwqn0B1ZuhuXy3ku2ki1VFSh17q/4m9IrM0Is1hZ/0ug+tn5RVA1axyRIqSKPW61ouc upUQ== 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=Olqir63f5/Kf497Jw21bcj1fKrQr3VFFu+FKw75pZwk=; b=sZDzqccdpMb6xK3y63WAUPc2oeE2JoMwzTQOpYUb73+JNU+yKOMGWjCfDsBfyk4w9g v9qgYLW4JzyB+HoRMrd2o99E9Fq1uY1gbJbQWz0PXZ+dnDC0xB7O6fp9jlguHJdKRFI6 uEKDkAC2qvNsEeKNe0WHXygIKW1Xt4Z5UUBDFKRe691dj3BQB5XfSTMMH7mhgWIS924/ 9d0//EpnJyCqYXk85h+DXNgb4Y/4wbh95/QkF1PhYAsPwBAtYoJqdr+V3K3/o7JEmGas hAJX8RSHHKiyeYgWaYQBSq6a7PJtb7GAen5vvDrkvnlPAj8bISfhRhll6F0pj3X81q9V Ma3g== X-Gm-Message-State: AJIora92bG8eIjloxIroSH1MBCSgFO9znwLeU3HJ+6uhKrApNTCCfaJT 7LTUzkbreA+R46jkvcHrwbIu4vSXMIX3zg== X-Received: by 2002:a17:90b:4f41:b0:1ed:712:fd80 with SMTP id pj1-20020a17090b4f4100b001ed0712fd80mr24306641pjb.224.1656390105386; Mon, 27 Jun 2022 21:21:45 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id jg6-20020a17090326c600b0016a087cfad8sm7994929plb.264.2022.06.27.21.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 21:21:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v4 10/45] target/arm: Mark string/histo/crypto as non-streaming Date: Tue, 28 Jun 2022 09:50:42 +0530 Message-Id: <20220628042117.368549-11-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::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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" 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 | 1 - target/arm/translate-sve.c | 35 ++++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/target/arm/sme-fa64.decode b/target/arm/sme-fa64.decode index d3039a8bb2..4683850fa5 100644 --- a/target/arm/sme-fa64.decode +++ b/target/arm/sme-fa64.decode @@ -58,7 +58,6 @@ FAIL 1100 1110 ---- ---- ---- ---- ---- ---- # Advanced SIMD cryptography e # --11 1100 --1- ---- ---- ---- ---- --10 # Load/store FP register (register offset) # --11 1101 ---- ---- ---- ---- ---- ---- # Load/store FP register (scaled imm) -FAIL 0100 0101 --1- ---- 1--- ---- ---- ---- # SVE2 string/histo/crypto instructions FAIL 1000 010- -00- ---- 10-- ---- ---- ---- # SVE2 32-bit gather NT load (vector+scalar) FAIL 1000 010- -00- ---- 111- ---- ---- ---- # SVE 32-bit gather prefetch (vector+imm) FAIL 1000 0100 0-1- ---- 0--- ---- ---- ---- # SVE 32-bit gather prefetch (scalar+vector) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 7524d713ab..4c28cc9200 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -7106,21 +7106,21 @@ DO_SVE2_ZZZ_NARROW(RSUBHNT, rsubhnt) static gen_helper_gvec_flags_4 * const match_fns[4] = { gen_helper_sve2_match_ppzz_b, gen_helper_sve2_match_ppzz_h, NULL, NULL }; -TRANS_FEAT(MATCH, aa64_sve2, do_ppzz_flags, a, match_fns[a->esz]) +TRANS_FEAT_NONSTREAMING(MATCH, aa64_sve2, do_ppzz_flags, a, match_fns[a->esz]) static gen_helper_gvec_flags_4 * const nmatch_fns[4] = { gen_helper_sve2_nmatch_ppzz_b, gen_helper_sve2_nmatch_ppzz_h, NULL, NULL }; -TRANS_FEAT(NMATCH, aa64_sve2, do_ppzz_flags, a, nmatch_fns[a->esz]) +TRANS_FEAT_NONSTREAMING(NMATCH, aa64_sve2, do_ppzz_flags, a, nmatch_fns[a->esz]) static gen_helper_gvec_4 * const histcnt_fns[4] = { NULL, NULL, gen_helper_sve2_histcnt_s, gen_helper_sve2_histcnt_d }; -TRANS_FEAT(HISTCNT, aa64_sve2, gen_gvec_ool_arg_zpzz, - histcnt_fns[a->esz], a, 0) +TRANS_FEAT_NONSTREAMING(HISTCNT, aa64_sve2, gen_gvec_ool_arg_zpzz, + histcnt_fns[a->esz], a, 0) -TRANS_FEAT(HISTSEG, aa64_sve2, gen_gvec_ool_arg_zzz, - a->esz == 0 ? gen_helper_sve2_histseg : NULL, a, 0) +TRANS_FEAT_NONSTREAMING(HISTSEG, aa64_sve2, gen_gvec_ool_arg_zzz, + a->esz == 0 ? gen_helper_sve2_histseg : NULL, a, 0) DO_ZPZZ_FP(FADDP, aa64_sve2, sve2_faddp_zpzz) DO_ZPZZ_FP(FMAXNMP, aa64_sve2, sve2_fmaxnmp_zpzz) @@ -7234,20 +7234,21 @@ TRANS_FEAT(SQRDCMLAH_zzzz, aa64_sve2, gen_gvec_ool_zzzz, TRANS_FEAT(USDOT_zzzz, aa64_sve_i8mm, gen_gvec_ool_arg_zzzz, a->esz == 2 ? gen_helper_gvec_usdot_b : NULL, a, 0) -TRANS_FEAT(AESMC, aa64_sve2_aes, gen_gvec_ool_zz, - gen_helper_crypto_aesmc, a->rd, a->rd, a->decrypt) +TRANS_FEAT_NONSTREAMING(AESMC, aa64_sve2_aes, gen_gvec_ool_zz, + gen_helper_crypto_aesmc, a->rd, a->rd, a->decrypt) -TRANS_FEAT(AESE, aa64_sve2_aes, gen_gvec_ool_arg_zzz, - gen_helper_crypto_aese, a, false) -TRANS_FEAT(AESD, aa64_sve2_aes, gen_gvec_ool_arg_zzz, - gen_helper_crypto_aese, a, true) +TRANS_FEAT_NONSTREAMING(AESE, aa64_sve2_aes, gen_gvec_ool_arg_zzz, + gen_helper_crypto_aese, a, false) +TRANS_FEAT_NONSTREAMING(AESD, aa64_sve2_aes, gen_gvec_ool_arg_zzz, + gen_helper_crypto_aese, a, true) -TRANS_FEAT(SM4E, aa64_sve2_sm4, gen_gvec_ool_arg_zzz, - gen_helper_crypto_sm4e, a, 0) -TRANS_FEAT(SM4EKEY, aa64_sve2_sm4, gen_gvec_ool_arg_zzz, - gen_helper_crypto_sm4ekey, a, 0) +TRANS_FEAT_NONSTREAMING(SM4E, aa64_sve2_sm4, gen_gvec_ool_arg_zzz, + gen_helper_crypto_sm4e, a, 0) +TRANS_FEAT_NONSTREAMING(SM4EKEY, aa64_sve2_sm4, gen_gvec_ool_arg_zzz, + gen_helper_crypto_sm4ekey, a, 0) -TRANS_FEAT(RAX1, aa64_sve2_sha3, gen_gvec_fn_arg_zzz, gen_gvec_rax1, a) +TRANS_FEAT_NONSTREAMING(RAX1, aa64_sve2_sha3, gen_gvec_fn_arg_zzz, + gen_gvec_rax1, a) TRANS_FEAT(FCVTNT_sh, aa64_sve2, gen_gvec_fpst_arg_zpz, gen_helper_sve2_fcvtnt_sh, a, 0, FPST_FPCR)