From patchwork Mon May 30 16:06:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 577243 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:330b:0:0:0:0 with SMTP id f11csp415595mag; Mon, 30 May 2022 10:03:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjPP/9swNd89us0ipIjW7Sp2Q0Kmn6MSLkQCRV1RiTVdWD+s0y8K5QDAJYLorUrbqt3veD X-Received: by 2002:a05:622a:1a29:b0:2f9:32e4:52e with SMTP id f41-20020a05622a1a2900b002f932e4052emr34283972qtb.689.1653930199150; Mon, 30 May 2022 10:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653930199; cv=none; d=google.com; s=arc-20160816; b=QpSSc4UJENDXZXb645EyoUNM+ncyga1EPJBKdX/qUzoD65mxzVaO1RGF7OmWYcwglT R59KVPE/pgE8aS34a4Y2qY1Wv40BLwSQfZ91M835NP4VitqwuJDZZC8+ZRsOAyapikXq 5zgh/H9BfVuLq9+9cvFL6rIQu7Dph81MpCn76gPkm+NqIrtlLravOj0S38+vyQilK7kx l8nlq5vZ82laBqQmyoQV3x8ZFm2nU9UBcUJUu8MEwh1l4zF+ePaOAPetqYuWFzZOmwiP E8JSQwRwkhrVfeQ9dGEGit6GiGt/dpbVXo+lDwOnvq6j1F+hrWXTYDu88tp2gkTRKVmD cKzw== 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=c+q5vO24GGsa56q9xbT6G/615HUPExTOfoQ1VCUsGhU=; b=iWgC24W2bo1FSbZE7wZSxfgKCtecG2yBDkqjBQMnQxJiVAGiSF2WGKZyhIsEgZLA6H 2sWlDaCl5F0sBEFkdJ2CA+E2SGJWS30q/Y27T2hJ4qkGm0CHC90IwBM+KoR6G6j5NSsm uKY3bUJ1yujvzIbr+CpDnWZKsOJgInuS9IWBfGD4t7rTRGzzwpffzCYQSH4hY5YhlFCA 7wPQ4xkoo8eJEKAZZWaXPitJvjiJuDNCWjF3GIdRxD1vDdpBmsFZGix0YPt+thmHKVVQ uETDFeThzOWJrTeCQG0ZpNnf4gYU8e+9q4ZMuhYGfj2Gcrl5BdlIkYnNIGuimakBehpb VfGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wXMMv4/3"; 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 kd30-20020a056214401e00b0046229c316a3si6981582qvb.284.2022.05.30.10.03.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 May 2022 10:03:19 -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="wXMMv4/3"; 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]:48192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvinW-0002ys-L0 for patch@linaro.org; Mon, 30 May 2022 13:03:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhwI-0003rA-Ee for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:26 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:43834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvhwF-0007Mm-Vz for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:17 -0400 Received: by mail-wr1-x429.google.com with SMTP id s24so7958985wrb.10 for ; Mon, 30 May 2022 09:08:15 -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=c+q5vO24GGsa56q9xbT6G/615HUPExTOfoQ1VCUsGhU=; b=wXMMv4/3WPLVS+THfCbHxuYsykQhG1N1Ou0p5mMjHvKrV4GU831NnnVlGuB70pXdA9 djvH0Kmp+Qnnn83Dp0SUEC3y+I66g0Ry++efrpoMQjKL2D2EqklyHwwJvp6AJOPt2j4v PdsBskuIYJ9pZ2GqF/YgkxlfbHA4Pr1DAR48ErU+ltim39VTVD13riTxjzGYCHUA44AC wgk61Dbi1bY4kGQU70KNVNZJOkZeDi7CQukTzZUUge3XYIhL8oQ3HOlnPfOxfP/1lSOp 6TlBsOGW8v6+SaoPhH3ZYnPlNix6iSmgG//WCmPu8gB5USPtMDAc30Wes6AnzjRw6JEc gKPQ== 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=c+q5vO24GGsa56q9xbT6G/615HUPExTOfoQ1VCUsGhU=; b=Stt7RvVQhR0XutVbUrVfTpgnkToluN0YomSTguc+DHV1iRIS0/1iUjBcWJtVwrNzJo Uhzxb+x0TSPqpA2zc9wCoUPooMNObAeiZas/Ktri2EM8zyiOhbVem2TZrT0RmxJXWW7x +J8IqyUFjjP9amE/q0JdHmFMRYQe3lGGmSemP5/GedEckAoxtDe6N7nO2mDTEanWQTHO 49MSsCz9gpwaXJQPJ8M6YFepqrfeCIzS0JI2G6pCGRyBV6A+ZpBH4QVJrajLgwOrWtJp HEuwSsTYiCZ4OBP2Lgfx6UUmivBwrkWWQc4dTn0GXXxkhoUE3+uavWXhm3EuOBQOjeE+ qavQ== X-Gm-Message-State: AOAM530bhtBi3AQjj9kMZSLsu+9cSDdjaofTXvxS+8reR7EP8+UosXWM LKmsBpvD7olP7/IkLKX4kFrRhLoJferRIw== X-Received: by 2002:a5d:58c2:0:b0:210:2baa:52b8 with SMTP id o2-20020a5d58c2000000b002102baa52b8mr8198900wrf.20.1653926894038; Mon, 30 May 2022 09:08:14 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id bi12-20020a05600c3d8c00b003974b95d897sm10232152wmb.37.2022.05.30.09.08.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 09:08:13 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 067/117] target/arm: Use TRANS_FEAT for do_last_general Date: Mon, 30 May 2022 17:06:18 +0100 Message-Id: <20220530160708.726466-68-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220530160708.726466-1-peter.maydell@linaro.org> References: <20220530160708.726466-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.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 Signed-off-by: Richard Henderson Message-id: 20220527181907.189259-65-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate-sve.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 841c1b56449..caa587506c4 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2622,15 +2622,8 @@ static bool do_last_general(DisasContext *s, arg_rpr_esz *a, bool before) return true; } -static bool trans_LASTA_r(DisasContext *s, arg_rpr_esz *a) -{ - return do_last_general(s, a, false); -} - -static bool trans_LASTB_r(DisasContext *s, arg_rpr_esz *a) -{ - return do_last_general(s, a, true); -} +TRANS_FEAT(LASTA_r, aa64_sve, do_last_general, a, false) +TRANS_FEAT(LASTB_r, aa64_sve, do_last_general, a, true) static bool trans_CPY_m_r(DisasContext *s, arg_rpr_esz *a) {