From patchwork Wed Jan 18 01:11:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 643669 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1489906pvb; Tue, 17 Jan 2023 17:13:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXtv0hWzp8C7QkZgugtrAeaAvGH8BZZCBmWQLwBQwsCBSmCnFdFwuPVbQ90PTGC5gBrzseB9 X-Received: by 2002:a05:622a:5086:b0:3b6:3c39:916e with SMTP id fp6-20020a05622a508600b003b63c39916emr6013178qtb.45.1674004383313; Tue, 17 Jan 2023 17:13:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674004383; cv=none; d=google.com; s=arc-20160816; b=BVYeikgsrcRWruRHi9+ltEMFbDOxkLKl8Dff2TPIatw/ik50IOVeXHmQQ3QjeQsrXt isAu0SEpJd2VZVdI5zH2GuN/jhRn/gAqrleW8ciYex7cgVLxcW37bWFUJ+YrWTniNG+k Ng5eIIirk83Lo5iKSUwRSt99iyAcx0vX0QFxr6XoyX6zq5VqHfDbYPg7B6NTHIm8DzA4 sJ3NIAh7ghcVfSawaEhf6Hs0WqVQMV0T1EHAxJveENMWgklntWISzncXSYiHQE2B69+L yGbI6E/wa6/70b5pSJZvCAix3GOjQL0npsEScyTdv0raanu70nHYQAM5MpTV1v6yoKb0 AjPg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=0Ul5xLQD2pTVs5KU88hy/3v5sPh0HeFfKCb/jilT058=; b=bIBShe6ToU1Bm6Oy62G8HvqQ//xiPfAishQyBwpk6HP4iPuTq5VVDcUDD3oHcXiFEx Oct+pntDqVSOYqlk8cM/x5PtxnjQbECqHQ4PBZXWHVc/JDVQtousUSKLZ2bYl/FN7FvZ bc5cb/SIUPP8n/N706SCMdDu8vXTqFydKhrYRKuQoGQ8/eWsWf9kvZFDDFNciwiF/2Ba rIykXY1dc0oXmYf2KQKj5fivBVmtfxfr3qtnJ7oO8WobU3HXkDxTFarwLkaPWyc0h1gx qAUqStlJbLWjlpp2mVJTvLve0GtfMIxMcejzTsm1gy4zK7itBVVGb0pzF3WCBA0U8XeR dbgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BmK0+4zt; 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 bb20-20020a05622a1b1400b003b6410c0bdesi1796036qtb.309.2023.01.17.17.13.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jan 2023 17:13:03 -0800 (PST) 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=BmK0+4zt; 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 ) id 1pHwzD-0001yA-BM; Tue, 17 Jan 2023 20:11:31 -0500 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 1pHwzC-0001xy-EJ for qemu-devel@nongnu.org; Tue, 17 Jan 2023 20:11:30 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHwzA-0002Dw-Nw for qemu-devel@nongnu.org; Tue, 17 Jan 2023 20:11:30 -0500 Received: by mail-pj1-x1034.google.com with SMTP id z4-20020a17090a170400b00226d331390cso647513pjd.5 for ; Tue, 17 Jan 2023 17:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0Ul5xLQD2pTVs5KU88hy/3v5sPh0HeFfKCb/jilT058=; b=BmK0+4ztBREKBElYN7Efq10L/y6TxvGsF2ggHDu/18Ws6JsNJTL4O5U58+PEHNjuwm Z+EOZBrSrYhDLcjn90hYlbMpTIS8CWIcNN4LUl011RyjGeY3CTpD5wIl4bVCSYJ/sXRB dqHcmdLQ337k3j0MO04VHdwJC8nTVrEAcqsq8oFnVzNQjFSf0GNF0UM7upt0DqctGxhL JHREFg+y/th5y5BFO691S7s00cVHfUMhF+Sk9QLS/TuG4dXk/8cnrv6GVabOn7SYyA1A /eLyHuhnCK3nzR+8ytiOJ5p6y+8DLso82FtWrehKFR/d+Z0Bo+oACZBA2G8g1NhDcJWK p4AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0Ul5xLQD2pTVs5KU88hy/3v5sPh0HeFfKCb/jilT058=; b=RpF1n55fNRmfYZiLRYhBAykmibGW3UTDqSXeShCQtQ1u8ITRWQAuBgK63K4Eq1EhnI H1sakgR0lZ1CxxfbyqKBJaosRRVTRSLysw6l46GvASVkb0W3tzwMuVWSEhi15LmJB95q dqVUVbs3j9y8UzGcWN44L7T4jEouFkyeD9YYYGd+j4Db2QJBf55VM7+Goj/2ZJdzhqfX TvDFqBmrBQpAOs4mOHhKrlKiVpHLneulXi5ORFTmOPaY9Nfzgf/9sX6i1ywoZOFlzKrJ vQhxfe//Ddfhspsj/K5MRQRGAxoN+J1tk38xreG2oKPZXK+229ZCQ3pDwdV/bXv0jjjJ Xs0A== X-Gm-Message-State: AFqh2koPIvzQqpZRPeYAlD8J/WEBUD1FIJCTOlBiw+UDi3WimDRDJ3ML uNDl22oApk2R4K11LmXh43YdrRfIQu1Zp+by X-Received: by 2002:a17:902:e402:b0:193:3980:98d5 with SMTP id m2-20020a170902e40200b00193398098d5mr3933317ple.57.1674004287141; Tue, 17 Jan 2023 17:11:27 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id s7-20020a170902988700b0017ec1b1bf9fsm21660259plp.217.2023.01.17.17.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 17:11:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: git@xen0n.name Subject: [PATCH v2 00/10] tcg/loongarch64: Reorg goto_tb and cleanups Date: Tue, 17 Jan 2023 15:11:13 -1000 Message-Id: <20230118011123.392823-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Based-on: 20230117231051.354444-1-richard.henderson@linaro.org ("[PULL 00/22] tcg patch queue") Includes: * Disassembler from target/loongarch/. * Improvements to movi by Rui Wang, with minor tweaks. * Improvements to setcond. * Implement movcond. * Fix the same goto_tb bug that affected some others. r~ Richard Henderson (9): target/loongarch: Enable the disassembler for host tcg target/loongarch: Disassemble jirl properly target/loongarch: Disassemble pcadd* addresses tcg/loongarch64: Update tcg-insn-defs.c.inc tcg/loongarch64: Introduce tcg_out_addi tcg/loongarch64: Improve setcond expansion tcg/loongarch64: Implement movcond tcg/loongarch64: Use tcg_pcrel_diff in tcg_out_ldst tcg/loongarch64: Reorg goto_tb implementation Rui Wang (1): tcg/loongarch64: Optimize immediate loading tcg/loongarch64/tcg-target-con-set.h | 5 +- tcg/loongarch64/tcg-target-con-str.h | 2 +- tcg/loongarch64/tcg-target.h | 11 +- disas.c | 2 + target/loongarch/disas.c | 39 +- .../loongarch/insn_trans/trans_branch.c.inc | 2 +- target/loongarch/insns.decode | 3 +- target/loongarch/meson.build | 3 +- tcg/loongarch64/tcg-insn-defs.c.inc | 10 +- tcg/loongarch64/tcg-target.c.inc | 364 ++++++++++++------ 10 files changed, 300 insertions(+), 141 deletions(-) mode change 100644 => 100755 tcg/loongarch64/tcg-insn-defs.c.inc