Message ID | 20231021053158.278135-63-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp634653wrl; Fri, 20 Oct 2023 22:46:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFT0sgsFwOvzsvFBfdk5iBXZNPNz/pN1AoYwVybDjqqE58fni01wa8la+Xq8MllbjFAoQ9E X-Received: by 2002:ad4:5763:0:b0:658:65ed:7e8 with SMTP id r3-20020ad45763000000b0065865ed07e8mr5074796qvx.57.1697867174179; Fri, 20 Oct 2023 22:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697867174; cv=none; d=google.com; s=arc-20160816; b=MGD3uqvRPmDSIcqga9o+IZ/JUvpoXU6G/PMSQxQxw8nGHfZ40FjFzBhjbOv6BbelmQ KjAWPljbfjB4AJLqCU9W4lddwUOHLdnpxx6Fmv7+yrtJAiEQQJB/CS9HppAVtigmqDgM KRtEMu/5vjaYsuqKygOQ1BB0qEf2Sd34xpAStMM8ucpvJK5XYOiC1mjH2qCViH8MCXz9 VqjhLNGYRy42esd8O+JJlDK4Ofn0n0AK4crAvQUX0AlklFP2FZxmpBoyVvTyHbJtHoAy XK8A55iK5TtHRN08DGEdT/yo3a2vZjK3FR/wTKt7obUXVV6Q4+61U3Hl/hebxRa8m7KJ xZZQ== 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=rCBYXApxSIdghuI/qlMU2hqEbFXCl70ucXr5x/f3RzQ=; fh=TYrED6TOMxGX0VC4GtjviASLbYyJe19+7/tKWjN44KQ=; b=VWCPwaHQx//dj2iydi1rSkVWOKwGZbPe4EbqyeuJ3WnNCdOLS1L07Efp1kY03omXop uIAZj6ea8RUWf1WwZdAWEnqh4q0uFJQ3reebRIZXke6QUDPofeCD/oq/HYuIg/fXPHTX haRsNqav+CzjnaBe7MECf514YZx+6wVInMPEy2mdr+otilrVo5/bksCK0/k6hnJ5Zfhk nG9TV/+xuOoRKGnzl/TDvxG1hOCBJL8zWPRY4oSblq6c51FoTdLfUl8Cc8zxlJpJP1Kq NbX22uQMc6VqlAp2UxCtgs/x6wEDfWzZ4ycnSHs3jxUHkFNT9bE74aS/CXl7B6bT/+go nv9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zpp+lWm1; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m20-20020a05620a24d400b0077894fa3885si2392224qkn.268.2023.10.20.22.46.14 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 22:46:14 -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=zpp+lWm1; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1qu4eZ-0003Kk-AL; Sat, 21 Oct 2023 01:36:03 -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 <richard.henderson@linaro.org>) id 1qu4eQ-0002qD-9n for qemu-devel@nongnu.org; Sat, 21 Oct 2023 01:35:54 -0400 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1qu4eO-00018p-Kw for qemu-devel@nongnu.org; Sat, 21 Oct 2023 01:35:54 -0400 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-57de6e502fcso906994eaf.3 for <qemu-devel@nongnu.org>; Fri, 20 Oct 2023 22:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697866551; x=1698471351; 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=rCBYXApxSIdghuI/qlMU2hqEbFXCl70ucXr5x/f3RzQ=; b=zpp+lWm1DkDRjSXa+YrRCb8c8quq093lIGNDRSr/zrUYsxVEuB8zSN5dIxBZxn6s4N MtceZYDadGoTeteKVj9XCDCUtfqSqJwSRhdqgDrlFnGj0eTlOdAwu8Wbo+IScBOKLpr7 y+gtZJjPTO6Mq73Y4c3J8eutupd5YVDQIC718cOsMk/X4Idq2CPQvmQAnXRFLfVLmGlk MaJ/LXcUH0w60CXu10V2JM9Q8tKYBJGOnjs48L4cFQP/H1JbKSvI1vdsdpoiv17ioH0w Dvx8Usg1jDdKJF583+vYReIS8ft9IOvJLzT/o2KawRCHmB1BFLxaMbiB2SPDxhFqFcik G/oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697866551; x=1698471351; 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=rCBYXApxSIdghuI/qlMU2hqEbFXCl70ucXr5x/f3RzQ=; b=RiH1NzXGgj+MwO4VwbVBkdlOtSKbfOYcjP0Wr3GA76vLnrbKaYYyEGEbYIjjSv5gQJ W+eofVCRG9YaG2JhYtctQaUGJouRWpnUQ1O7lMGEr1mBG3DTSrDPN3O86GjWuDe2bcwh zjxFFs4tcx/hfXD/U+F8Y2uHM94ZqhU3+FHgRE2SDJaps7lnYR70H46ytb3Hs4jqctnC PZgGtdtTOn8+/8l5dm+nAYu11xBHw2uYuup7BzO3P8BxsX1q2XRhdcbswpGStFWyXPSm K2ADBmzBQpGB0BMYARiXTzcGrpPZdk2gJLSq618/zomxzAgmzaRDRsHdIQO489esUpLW 69Tg== X-Gm-Message-State: AOJu0YysE007El0Ty16GNFGkWpQExtwnmcfog4/bQJqwFn5jrhI0+jhj pkO+aJK1S4vHVNi0U/25xuwCymAM0voTjEqzmhY= X-Received: by 2002:a05:6870:2893:b0:1e9:da6f:a161 with SMTP id gy19-20020a056870289300b001e9da6fa161mr4749040oab.3.1697866551284; Fri, 20 Oct 2023 22:35:51 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id h1-20020a62b401000000b00690d255b5a1sm2427978pfn.217.2023.10.20.22.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 22:35:50 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk Subject: [PATCH v3 62/90] target/sparc: Move BMASK to decodetree Date: Fri, 20 Oct 2023 22:31:30 -0700 Message-Id: <20231021053158.278135-63-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231021053158.278135-1-richard.henderson@linaro.org> References: <20231021053158.278135-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::c2f; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2f.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
target/sparc: Convert to decodetree
|
expand
|
diff --git a/target/sparc/insns.decode b/target/sparc/insns.decode index 855627b55e..9ea5e09dfc 100644 --- a/target/sparc/insns.decode +++ b/target/sparc/insns.decode @@ -255,6 +255,8 @@ RETRY 10 00001 111110 00000 0 0000000000000 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 92a6988fae..bccebfc953 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -4370,6 +4370,18 @@ static void gen_op_alignaddrl(TCGv dst, TCGv s1, TCGv s2) TRANS(ALIGNADDR, VIS1, do_rrr, a, gen_op_alignaddr) TRANS(ALIGNADDRL, VIS1, do_rrr, a, gen_op_alignaddrl) +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; @@ -4920,7 +4932,6 @@ static void disas_sparc_legacy(DisasContext *dc, unsigned 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)); @@ -5285,15 +5296,8 @@ static void disas_sparc_legacy(DisasContext *dc, unsigned 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 = gen_load_gpr(dc, rs1); - cpu_src2 = 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 = gen_load_fpr_D(dc, rs1);
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/sparc/insns.decode | 2 ++ target/sparc/translate.c | 22 +++++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-)