From nobody Wed Nov 27 15:49:04 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1698280793; cv=none; d=zohomail.com; s=zohoarc; b=du21JXa/b3BM8ZujAKYi5uddqV2EoWvluZChD934vrw+q5F/nanuFr/ByWOQR6ECDmvb6YVsugOk+mnIE5TPlEWzfbRsc9BzqE0KBwsgRs0ui9cxP19j5QXD4ieYPp/5fa6z+iTVldFhEXtf/2ZMFIXvks8/JchiPL5A7Swr7cQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698280793; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=zT14RAopyAvl8kuzSxXdtDC5GmRV87HsUcPsxZmEC3k=; b=mn5wd/HuXPkg8iF/P+6kStWo2NLDi4njBspOazwWpm3HZXsV9knb/f5u5wUG/A3OlhvRp/HjCjg7uu0zYnAmc/QCM1seSzPBerlNzIiXUZw/QKExgPfeEE/qnGBSWSVqUhx2Eq+QXckrgSq6srz37NvOyrzQyJtcIGnzA+advbE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1698280793622463.5529359532951; Wed, 25 Oct 2023 17:39:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvoA0-0004BZ-TP; Wed, 25 Oct 2023 20:23:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvo9U-0001dg-Nr for qemu-devel@nongnu.org; Wed, 25 Oct 2023 20:23:08 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvo9Q-0008Cr-Im for qemu-devel@nongnu.org; Wed, 25 Oct 2023 20:23:08 -0400 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-27d0251d305so222028a91.2 for ; Wed, 25 Oct 2023 17:23:03 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id 9-20020a17090a0cc900b0027463889e72sm499870pjt.55.2023.10.25.17.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 17:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698279782; x=1698884582; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zT14RAopyAvl8kuzSxXdtDC5GmRV87HsUcPsxZmEC3k=; b=vog200oOhjhocjie4tU2iE3vgfMcV/+86er6GmFE8FJaoatqBO6z3xdLifWmVJUQip lGu2O4E+7yBBcJaQ9biXIK5hw00CjbjhqHycJ43hX0gZwlyL0P0NdVul08IBgfc2gTeB TXVfEACbYV4vQfQTuZ4fhSG1GKwCDd6pfhYWRasPa3IPkni0udk+S3YHQElK8ZtQGth6 ao0nrHrLJiEUZbG1A9kTuu4S5wl9ZJ/9+XKjld07KWsC6EG3WcP+RNfF05TRSsPHKbhY R2z/SjINg18Yf56LX1jwQlftMFFnDtIerMi29j7Jumh3dzJqZgzjCBVz6k5BUgntJC3E fA/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698279782; x=1698884582; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zT14RAopyAvl8kuzSxXdtDC5GmRV87HsUcPsxZmEC3k=; b=R3COay3o8HZrRURtkea6JZuJdSONzOtZeDWIqipDLPsDl/cxskz6wIplOdNwdLrWL0 o6h8h9P6CrVh6bUnuPV70bsozbIDyOatfldxltIUswsA6u4MvqhEeYWlP+is2QuhDF/A 6HCmv4eGAja5CWdmfnP9kesTJ9KNSQHYq6end+JB5xLzBAgqpp3RQLGsqBLthSLsSQBx KoKvgpmfvf/fLdH1XD4iJqpOCpH85YF2i4LvdK8atCmx3uxAWArjXj54r+qjY+Hw7wSz 00tILJQEU177vUkTPmf9OIZjgdyOrpGzp2RnZ7TlMHQq642EOBFlHuMLruWEHCqyyIxR z3iw== X-Gm-Message-State: AOJu0YwJPZpQHGdEywY1BC0zqSrYuayUlCJr+NPWKfIFrY6ygWbwPlvU 2x5cxa8LDkD4t5LK75HVteOrWL8NuwZVrSKlU+o= X-Google-Smtp-Source: AGHT+IFzFIC3fu/ri4Gfr+0bpOQWHk4Nkp5Jxy6UJrLHrIOJGibv4M+O9Cmjn3bGRol5Ywof0pMjFg== X-Received: by 2002:a17:90b:2b85:b0:27d:1339:9176 with SMTP id rs5-20020a17090b2b8500b0027d13399176mr14652551pjb.25.1698279782019; Wed, 25 Oct 2023 17:23:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Mark Cave-Ayland Subject: [PULL 66/94] target/sparc: Move BMASK to decodetree Date: Wed, 25 Oct 2023 17:15:14 -0700 Message-Id: <20231026001542.1141412-96-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231026001542.1141412-1-richard.henderson@linaro.org> References: <20231026001542.1141412-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1698280794610100008 Content-Type: text/plain; charset="utf-8" Tested-by: Mark Cave-Ayland Acked-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target/sparc/insns.decode | 2 ++ target/sparc/translate.c | 22 +++++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/target/sparc/insns.decode b/target/sparc/insns.decode index f70423895e..db372573a2 100644 --- a/target/sparc/insns.decode +++ b/target/sparc/insns.decode @@ -255,6 +255,8 @@ RETRY 10 00001 111110 00000 0 0000000000000 =20 ALIGNADDR 10 ..... 110110 ..... 0 0001 1000 ..... @r_r_r ALIGNADDRL 10 ..... 110110 ..... 0 0001 1010 ..... @r_r_r + + BMASK 10 ..... 110110 ..... 0 0001 1001 ..... @r_r_r ] NCP 10 ----- 110110 ----- --------- ----- # v8 CPop1 } diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 5d2be34135..ee0c263a99 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -4264,6 +4264,18 @@ static void gen_op_alignaddrl(TCGv dst, TCGv s1, TCG= v s2) TRANS(ALIGNADDR, VIS1, do_rrr, a, gen_op_alignaddr) TRANS(ALIGNADDRL, VIS1, do_rrr, a, gen_op_alignaddrl) =20 +static void gen_op_bmask(TCGv dst, TCGv s1, TCGv s2) +{ +#ifdef TARGET_SPARC64 + tcg_gen_add_tl(dst, s1, s2); + tcg_gen_deposit_tl(cpu_gsr, cpu_gsr, dst, 32, 32); +#else + g_assert_not_reached(); +#endif +} + +TRANS(BMASK, VIS2, do_rrr, a, gen_op_bmask) + static bool do_shift_r(DisasContext *dc, arg_shiftr *a, bool l, bool u) { TCGv dst, src1, src2; @@ -4803,7 +4815,6 @@ static void disas_sparc_legacy(DisasContext *dc, unsi= gned int insn) { unsigned int opc, rs1, rs2, rd; TCGv cpu_src1 __attribute__((unused)); - TCGv cpu_src2 __attribute__((unused)); TCGv_i32 cpu_src1_32, cpu_src2_32; TCGv_i64 cpu_src1_64, cpu_src2_64; TCGv_i32 cpu_dst_32 __attribute__((unused)); @@ -5168,15 +5179,8 @@ static void disas_sparc_legacy(DisasContext *dc, uns= igned int insn) case 0x014: /* VIS I array32 */ case 0x018: /* VIS I alignaddr */ case 0x01a: /* VIS I alignaddrl */ - g_assert_not_reached(); /* in decodetree */ case 0x019: /* VIS II bmask */ - CHECK_FPU_FEATURE(dc, VIS2); - cpu_src1 =3D gen_load_gpr(dc, rs1); - cpu_src2 =3D gen_load_gpr(dc, rs2); - tcg_gen_add_tl(cpu_dst, cpu_src1, cpu_src2); - tcg_gen_deposit_tl(cpu_gsr, cpu_gsr, cpu_dst, 32, 32); - gen_store_gpr(dc, rd, cpu_dst); - break; + g_assert_not_reached(); /* in decodetree */ case 0x020: /* VIS I fcmple16 */ CHECK_FPU_FEATURE(dc, VIS1); cpu_src1_64 =3D gen_load_fpr_D(dc, rs1); --=20 2.34.1