From patchwork Tue Dec 6 04:40:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 631322 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2940325pvb; Mon, 5 Dec 2022 20:41:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6vxncTmjJ/iulT0LbyuGZpt2d92iaHEErKliT2yW91p9fw1QQdsd9brOvXS/WoUVh47efV X-Received: by 2002:a05:6214:3b85:b0:4bc:18ec:59fe with SMTP id nf5-20020a0562143b8500b004bc18ec59femr76952495qvb.43.1670301709619; Mon, 05 Dec 2022 20:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670301709; cv=none; d=google.com; s=arc-20160816; b=RKl8YXpxYoRHKsKBt6mmZl22kw6Vpw8nvZDAv1KqsouMcSH4hkCF5VmzNcXAMdSCQM FifqLMzrW+zGWoRbq+26s/SSOOmkoVyT6domsJ5xCbI3vSAB4ittdsbkzVJRAwHMJUXm PRVENkPQw8EOxYt9fRPwgrVlp4Vp4QDn0SWguT3YTx86HHRjvgvwpDgPl91cZGysncr2 Shy0Ijkyr/OrBeoZh3/GV11Ilf1BT+xmOwT5TSTBWRWAmlFrq2nimMQTSFSGRx6zEGAS 74QeuFYDiUL4dhXv9TwstHk7GWu+HtXkM8vGaYzWNoLBmcOHJzaDPEUiWkR3LHLI3rAP bpYQ== 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:to:from:dkim-signature; bh=JzEOgD+Cp+C6p294fklDYRe+8h1pYOUBi1PzQXISUyM=; b=0RmlKW6dUS20Rc/0elmR9KfzC6oupBDNHNC955jyS7ibqznsOJB/CaZ/mL2kAUNFOO 1g9Wzn6g+3R0KU3bYZMzR33ofDCiriRFEf760HpsYUGA33HFvJ8jYcGJdUzuxAiXwOCp +1Opd2WXQOtDM3MiI/WgXhI8CD5RCtwFVPAqOCUYlm/ciQKqthuCdwiV2tGMXxn7AIZ3 ZOGWmtu2gpZtZjCzyaZREgwDSOB1HicahMssGfyMb2yWapyACvKMfmjvAZ6qi36Nyavg UneKaNhJdkTlLCWKejR2Jf1z92mZiHSemPietkDe9i2TxB5MJU6FDnMZGT3SpfSdKVN8 41Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v5mRz86G; 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 bp32-20020a05620a45a000b006fb8db8f204si9425474qkb.282.2022.12.05.20.41.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Dec 2022 20:41:49 -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=v5mRz86G; 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 1p2PlK-0003AH-Fn; Mon, 05 Dec 2022 23:40:58 -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 1p2PlJ-00038y-Cv for qemu-devel@nongnu.org; Mon, 05 Dec 2022 23:40:57 -0500 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2PlH-0002zp-Sv for qemu-devel@nongnu.org; Mon, 05 Dec 2022 23:40:57 -0500 Received: by mail-oi1-x22b.google.com with SMTP id v70so7259637oie.3 for ; Mon, 05 Dec 2022 20:40:55 -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:to :from:from:to:cc:subject:date:message-id:reply-to; bh=JzEOgD+Cp+C6p294fklDYRe+8h1pYOUBi1PzQXISUyM=; b=v5mRz86GkGVxto0iZExiRgKajZw7mOX0SIiJjz/jyxSWAxUvwhAZ4Ui3IytTo+jGnp pEu88h7q8wnEoxS7MvJEQfwmOMsityqgJmJaH+OvpziNNYk5P7WyLBhEJ2fyCtJbtUSa w3XgsdrNtVXOc7QHLKp61LGGHr5sEMJnZ+D0YnNSpW7AC52mT8IQcmex8Ve52mejlNcc mmUOeix5dzDn9/IXwvW/PGo0Cw4Jyh0ar8fBzWKXiPCR592WUe1ziKBDur4RYK3TYSTN JrVHtZ6XJ6pxz5yz8AVwpMrsyEXd8hk203ip4c+Vxt0wZ5A9lOL2MIJYbBB7YUPiPLSr ABMQ== 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:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JzEOgD+Cp+C6p294fklDYRe+8h1pYOUBi1PzQXISUyM=; b=H5GEHH0dJck+lhPeVAqviH9nLEYKUrbx6SIGpPduH48SbIYXYCFXxzpAonz+nW3t32 pIE5HMvF8+fo4IBhHiOxIbCchH1MMdwTKILlwxbZKCRR88dzrLT7IrCellhrP6E5VY8L rWL7Y/ruLSwdjdI/VkrXsQWig+H2LmEDbpTPbwhzq9J2tik+pvTw4HFJGpG2FMcaCd0T bJk8y20SRkKGv9bTZC07ZXL2h29CO6Jxm/qeCJMKGGyTWxmGSGR4/83T2Chgz34lSAU2 opeNOXRDgo3Xb1vAMfcLDAMRZhVTUDti6hqWGEvh9QsEFqg+s8TvpmK+WDMxuX0S2q3O DNyw== X-Gm-Message-State: ANoB5pkixvLD8wvv3N0YTkXc4NWrdpNcDR5EZyXNjOW7VItEGBKK8xnx yuF8FRqvXZLvm4zbVVk8QgyfjN40V2fyxI8foO8= X-Received: by 2002:a54:448f:0:b0:35c:2027:ea01 with SMTP id v15-20020a54448f000000b0035c2027ea01mr4935188oiv.222.1670301654285; Mon, 05 Dec 2022 20:40:54 -0800 (PST) Received: from stoup.. ([2806:102e:18:70b5:d104:21c2:8c7e:77e6]) by smtp.gmail.com with ESMTPSA id z6-20020a05687041c600b001442fada152sm7561864oac.46.2022.12.05.20.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 20:40:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/8] tcg/loongarch64: Reorg goto_tb and cleanups Date: Mon, 5 Dec 2022 22:40:43 -0600 Message-Id: <20221206044051.322543-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::22b; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22b.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: 20221206041715.314209-1-richard.henderson@linaro.org ("[PATCH 00/22] tcg: exit_tb tidy, goto_tb reorg") 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 (7): target/loongarch: Enable the disassembler for host tcg 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/meson.build | 3 +- tcg/loongarch64/tcg-insn-defs.c.inc | 10 +- tcg/loongarch64/tcg-target.c.inc | 359 +++++++++++++++++---------- 7 files changed, 256 insertions(+), 136 deletions(-)