From patchwork Mon Jul 11 13:57:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 589368 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:bb16:0:0:0:0 with SMTP id jd22csp3295143mab; Mon, 11 Jul 2022 07:24:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8NIrY1O0eiQ5eus+a8RHHrPnw4Gm2FFCrmI4hWC7245/Q3XDIcy7QILcwPuT2FoLtgWrC X-Received: by 2002:a05:6214:762:b0:473:7fa0:61eb with SMTP id f2-20020a056214076200b004737fa061ebmr580168qvz.100.1657549455673; Mon, 11 Jul 2022 07:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657549455; cv=none; d=google.com; s=arc-20160816; b=QmQi5QMI16Sjm5TTlxBW7bCUTY4f9WchL4hHy8iqIuQ2KyZhrhLJ3s6/7uHjYCwxdf V4bMrrXfEPTh0DqwFQXwdK7OxmVCkc/A9KH1bDGGbe2XcgY8aeWzAL3rMpKlt7h7g+H9 VRb3UGS3eugUKAsTJUZ05msMdPgyD/tpTnnGbEPh6EMa3dGYUDJw74mkZskz2rR8hYph 9Lv0SfAX+jGp75bk6y/IQZzTphii4lOJcLgn1EwNGMyMpTpw2IYXFJYN8801cWLPsYx7 61+VUCbDDwfZ7tJmHunWQ5o4IDSv2sQkoE1XFaRr7vLaePFgcQcVn09DmVytfKT3QRPV jATA== 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:to:from :dkim-signature; bh=uTMMqjDRKpIHGPC7OkIB/YQ8tJedyxE3xlM4z9DBACI=; b=FS+EFN3SzgULjcV/Ilgji9/df8dTpruM1MqLtY9L1g5+8cJcbfrf1SR/wlgxT67cR/ kJWbU/yg8/9q9oYgfitl8m0YAAqrSuHWwqQTCtPUnnzR13sayjswiz4ilQQ5RPywX1mh W7n9NpW8St4B3jWjksdvJauEsMyKUK611Bz48ddgdaUNyLhpibtYPS36vP/ZxToiRE0w cQHzcbVzik0i4AKf6L7MyCndMjX0yRycEJT+MABRy4P3WFX04V3LlDeX6H/4oj03vetO T5JcALGX/NeakPE5Tt3bOpM/b+d++zBHt7y5oWWMdwDA7XHowJ90C71obUOZUQR3PqTm og1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Aks/FESq"; 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 b10-20020ac85bca000000b003050059df54si4867172qtb.771.2022.07.11.07.24.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jul 2022 07:24:15 -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="Aks/FESq"; 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]:57906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oAuKd-0005Pm-48 for patch@linaro.org; Mon, 11 Jul 2022 10:24:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oAtvU-0006XE-39 for qemu-devel@nongnu.org; Mon, 11 Jul 2022 09:58:17 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:42576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oAtvQ-0002pI-3x for qemu-devel@nongnu.org; Mon, 11 Jul 2022 09:58:15 -0400 Received: by mail-wm1-x333.google.com with SMTP id bi22-20020a05600c3d9600b003a04de22ab6so3092047wmb.1 for ; Mon, 11 Jul 2022 06:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=uTMMqjDRKpIHGPC7OkIB/YQ8tJedyxE3xlM4z9DBACI=; b=Aks/FESqU5783IxvcXqYvw4pYX/iDSiZzUu7swdKsRj9DOeIvefuiugz6OSPTHRopz edslCPAAi5Wu1PD+V7YZO2/VouQm0yvP2/hviLh8YUTqyWWcjWOQTaXC5Tq5R7aC6xMh MjmizLkKM2b0/gTBiorA50y9wMnkIHHN9q2kY21EZp5LbluUqUPpZyLS0zVntFCDuDkV Tt08AT+uMgnCORCybTTZPZTfYHJHy0zfPzwUx3/Qst+eMaU4xWc4KDzyju9ooskbAeyF 3mVtS64m/zu5f1gcG9gNc/YlTmSl9GAUww4NnXD2/30LL87uq8LmC/zjDhRnbOCDre6Y JoyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uTMMqjDRKpIHGPC7OkIB/YQ8tJedyxE3xlM4z9DBACI=; b=7l/tZ1qiYhlDxx1ozXiNCM0tyWluX1NQSU1v8as3xZdYtrgJLRxEhI0kjOu22TH01/ KOg4Sei5UyidZnWGvL4hsd+OXcvfUZIwumqvxoNuDuq1xlsEAwcD7kQ/ONeSTgjb/2/f rXbjFXxFoMtikuYaYTuNCMmTb06gKQFB6QSeazZdP+tz2MyA8P3QO6t24vGoFgyvrUDk 9Bmc0j6pEFfqPjDnE579LnK6QjFq0NCBsqndYiqhp9y84GOwrtLXq+kEHUqtmZ3+YRQ+ LaGt+68UhkRL9sIw3B16Ipys0gPKHzP285HSLCJsh2k6a/065Wd+f9DaOGg4ztIUddwc qg2Q== X-Gm-Message-State: AJIora/Rs6CqF5i3QptJMsXZZo2GbeRFc4Bk7FGD+xAw6PnFGgKNaj09 /+WwLAzsRv7xjS6sbPUujOAhyq6DWxAGjg== X-Received: by 2002:a05:600c:a42:b0:39c:9166:5a55 with SMTP id c2-20020a05600c0a4200b0039c91665a55mr15789610wmq.141.1657547881344; Mon, 11 Jul 2022 06:58:01 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id q123-20020a1c4381000000b00397402ae674sm7595596wma.11.2022.07.11.06.58.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 06:58:01 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 11/45] target/arm: Mark gather/scatter load/store as non-streaming Date: Mon, 11 Jul 2022 14:57:16 +0100 Message-Id: <20220711135750.765803-12-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220711135750.765803-1-peter.maydell@linaro.org> References: <20220711135750.765803-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x333.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" From: Richard Henderson Mark these as a non-streaming instructions, which should trap if full a64 support is not enabled in streaming mode. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20220708151540.18136-12-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/sme-fa64.decode | 9 --------- target/arm/translate-sve.c | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/target/arm/sme-fa64.decode b/target/arm/sme-fa64.decode index fe462d2ccce..1acc3ae0809 100644 --- a/target/arm/sme-fa64.decode +++ b/target/arm/sme-fa64.decode @@ -59,19 +59,10 @@ FAIL 0001 1110 0111 1110 0000 00-- ---- ---- # FJCVTZS # --11 1100 --1- ---- ---- ---- ---- --10 # Load/store FP register (register offset) # --11 1101 ---- ---- ---- ---- ---- ---- # Load/store FP register (scaled imm) -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) -FAIL 1000 010- -01- ---- 1--- ---- ---- ---- # SVE 32-bit gather load (vector+imm) -FAIL 1000 0100 0-0- ---- 0--- ---- ---- ---- # SVE 32-bit gather load byte (scalar+vector) -FAIL 1000 0100 1--- ---- 0--- ---- ---- ---- # SVE 32-bit gather load half (scalar+vector) -FAIL 1000 0101 0--- ---- 0--- ---- ---- ---- # SVE 32-bit gather load word (scalar+vector) FAIL 1010 010- ---- ---- 011- ---- ---- ---- # SVE contiguous FF load (scalar+scalar) FAIL 1010 010- ---1 ---- 101- ---- ---- ---- # SVE contiguous NF load (scalar+imm) FAIL 1010 010- -01- ---- 000- ---- ---- ---- # SVE load & replicate 32 bytes (scalar+scalar) FAIL 1010 010- -010 ---- 001- ---- ---- ---- # SVE load & replicate 32 bytes (scalar+imm) FAIL 1100 010- ---- ---- ---- ---- ---- ---- # SVE 64-bit gather load/prefetch -FAIL 1110 010- -00- ---- 001- ---- ---- ---- # SVE2 64-bit scatter NT store (vector+scalar) -FAIL 1110 010- -10- ---- 001- ---- ---- ---- # SVE2 32-bit scatter NT store (vector+scalar) -FAIL 1110 010- ---- ---- 1-0- ---- ---- ---- # SVE scatter store (scalar+32-bit vector) -FAIL 1110 010- ---- ---- 101- ---- ---- ---- # SVE scatter store (misc) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index f8e07164748..b23c6aa0bfd 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -5669,6 +5669,7 @@ static bool trans_LD1_zprz(DisasContext *s, arg_LD1_zprz *a) if (!dc_isar_feature(aa64_sve, s)) { return false; } + s->is_nonstreaming = true; if (!sve_access_check(s)) { return true; } @@ -5700,6 +5701,7 @@ static bool trans_LD1_zpiz(DisasContext *s, arg_LD1_zpiz *a) if (!dc_isar_feature(aa64_sve, s)) { return false; } + s->is_nonstreaming = true; if (!sve_access_check(s)) { return true; } @@ -5734,6 +5736,7 @@ static bool trans_LDNT1_zprz(DisasContext *s, arg_LD1_zprz *a) if (!dc_isar_feature(aa64_sve2, s)) { return false; } + s->is_nonstreaming = true; if (!sve_access_check(s)) { return true; } @@ -5857,6 +5860,7 @@ static bool trans_ST1_zprz(DisasContext *s, arg_ST1_zprz *a) if (!dc_isar_feature(aa64_sve, s)) { return false; } + s->is_nonstreaming = true; if (!sve_access_check(s)) { return true; } @@ -5887,6 +5891,7 @@ static bool trans_ST1_zpiz(DisasContext *s, arg_ST1_zpiz *a) if (!dc_isar_feature(aa64_sve, s)) { return false; } + s->is_nonstreaming = true; if (!sve_access_check(s)) { return true; } @@ -5921,6 +5926,7 @@ static bool trans_STNT1_zprz(DisasContext *s, arg_ST1_zprz *a) if (!dc_isar_feature(aa64_sve2, s)) { return false; } + s->is_nonstreaming = true; if (!sve_access_check(s)) { return true; }