From patchwork Sat Oct 26 17:53:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 838776 Delivered-To: patch@linaro.org Received: by 2002:adf:e287:0:b0:37d:45d0:187 with SMTP id v7csp876300wri; Sat, 26 Oct 2024 10:55:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVRt+DAvkdPsxw/WZThcUzhYx22Ou2bFh9h59sa4fY5Eq/zVnOTrMHfqE7eZX9zjdLvlFVzOg==@linaro.org X-Google-Smtp-Source: AGHT+IHGuDH/7uGqVYfp35vguCS/Wgqt6tJbJai8foajYozvLSwV9kZFu1JzzQ2njv/fiNl2pLe2 X-Received: by 2002:a05:620a:2443:b0:7b1:51e5:ba5b with SMTP id af79cd13be357-7b193f04443mr459113985a.35.1729965305865; Sat, 26 Oct 2024 10:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729965305; cv=none; d=google.com; s=arc-20240605; b=B0OFD2u74tdCp7H4OaGZIG8H62sPpnKo/YanpXHwRYa2rn1L3nfixYPhIyyuToJAqy 2/ICINP1OIm+wA1ocaBh7/aUWnUjUHjzTf+/2mJaOEXj49QCeKH37gJmeqA/Dej4otal QE1v/go75K4COb0k+ql5G7Nv+qB5WpKblnv7LN/02X5dwFs6G07AUDHt3kDKtJIw2Y4T qJuO2TX03fUHdvUvKFedFMkq3mXGw2vh3K7mhxRFPDSilb5xUh6vl9FKxeLyup+aT59b +ILLAXFbRnmHay6Xk2iLlYYpuwfoeE2xovIorqebwa+HEKV985LlZ9QjPB6/qoaFZkFy sa6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=20F5Gu/eBrEEfio2iNByM6idYfdt22xkEdJwFN0eM/0=; fh=Fyc/uQE4NIQji9TfBV/wMiqTYyuAKx/kR36beZawhfI=; b=BfFGqRpMAf2p3Wr6ya1u08H3hgA7j9CtNYQPXHutMWiGzw7fUCG9iQXHgvE+98Pn1E Nli/h744bDUhpDencbCFlN6TMr85nLDRX0Oz9h9DokqCS4bm4JZScaVDRdBwmYqtDYaD 28Rl45LxxZE14AaXhTaSGWp7SDJKrU45P7wFnAsuqxg86Y2JwoG0R/H9vu5zLvuOXmMw k3mSq+Gn1pZz2TLVT0qMVDdEiQ7tSWefB9kErHtzU7iJ81KNHl1lwKUwEhetHA4Ec4TV eaU733EUsJ5T6xBSKLyAzfOO2mYOpBgQ7CBYiNjCvM1p/w3PjBGRuM8g/9dApsihHfz3 SH9A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P4kRVCSS; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b18d321c7csi446035585a.325.2024.10.26.10.55.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Oct 2024 10:55:05 -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=P4kRVCSS; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4kzA-0008Mp-0s; Sat, 26 Oct 2024 13:54:00 -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 1t4kz8-0008MW-Ew for qemu-devel@nongnu.org; Sat, 26 Oct 2024 13:53:58 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t4kz7-0003is-0B for qemu-devel@nongnu.org; Sat, 26 Oct 2024 13:53:58 -0400 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2e30db524c2so2292702a91.1 for ; Sat, 26 Oct 2024 10:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729965234; x=1730570034; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=20F5Gu/eBrEEfio2iNByM6idYfdt22xkEdJwFN0eM/0=; b=P4kRVCSSmeopdehH8w1FscnAKeVtByU5MzqET7WFuhMwddgCOIFLA/s2JTIp9kS3kt IVUkmVDRHeaUYnvM7YYckDzUyahTVT9YVI24+sKdVo667PwtewvHuBEsXbV8didJw4CC 3Nx5kSecheFJ1KamLIrZQuycLPTv56fstLc69uwfAiuJJYmVrFz2WEscNzcUubeF2+az 6/3JvfStrQJL8SliqyURt6glIF0PzHm/4hmlQORTZ2rPOIjufM/tKgIFwcxtK4+qxewI jnqH4oDmnGyyfenqqPuY74wTwDsMhdXWHeE3+IHnrx0alC0NaYo8CT/CpD0jIFVOb1Xe Qc2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729965234; x=1730570034; 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=20F5Gu/eBrEEfio2iNByM6idYfdt22xkEdJwFN0eM/0=; b=SxV7gVXA+BMPdle625vi6r8AmW08ot8IM9BE90U8EhfKbp2+LRvaCsZ2WtVheHa46I TQVb1YruhDi+ob/TMjP6XLaypWE0iVX6oiS9KBQEL/IxAzRW+YM/RFcv6z0nUZR2XzPq iH6aeqmLhlKKTRptODRL+pUSjcRPytOJ4FgU0xgSmxrVzaIxDPM8mHb1ezydopeTX68G UGTQ6zPpYxNmHdkTvEz0DoOmOvlvkT2E+z32Q8X5xR60+P32al3KHO+MCuvTI5/9YaSQ On+9Vc1BTYOXoGkVHsq9C9IwGE8QNQiEBNO/0xWRYxCS2vUHzeYjCcGgW0x3XaRzZE2Q jJEg== X-Gm-Message-State: AOJu0YyP/eu3wfdXqezu6M0QxCgl3ayPk0lxSFu0n3NVaMc7fKkmOrmS Fs5pzPGS/ZvR3c35NtdUJHT4p53fJ3mNSvZxTU6GIm+1STOzpshKGAjFsHHlQ2GzOJaTtuTKCYI G X-Received: by 2002:a17:90a:c089:b0:2e2:b69c:2a9 with SMTP id 98e67ed59e1d1-2e8f11ac969mr3847746a91.26.1729965234643; Sat, 26 Oct 2024 10:53:54 -0700 (PDT) Received: from localhost.localdomain ([45.176.88.169]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e77e48c18csm5899775a91.5.2024.10.26.10.53.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 26 Oct 2024 10:53:54 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Aleksandar Rikalo Subject: [PATCH v3 0/9] target/mips: Convert Loongson LEXT opcodes to decodetree Date: Sat, 26 Oct 2024 14:53:40 -0300 Message-ID: <20241026175349.84523-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=philmd@linaro.org; helo=mail-pj1-x102e.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 Missing review: 1 & 9 Since v2: - Extract decode_64bit_enabled() - Remove unreachable 32-bit code Since v1: - Fixed '!is_double' check (rth) - Rebased (removing tcg_temp_free calls) - Simplified MULT[U].G (rth) - Added R-b Philippe Mathieu-Daudé (9): target/mips: Extract decode_64bit_enabled() helper target/mips: Simplify Loongson MULTU.G opcode target/mips: Re-introduce OPC_ADDUH_QB_DSP and OPC_MUL_PH_DSP target/mips: Convert Loongson DDIV.G opcodes to decodetree target/mips: Convert Loongson DIV.G opcodes to decodetree target/mips: Convert Loongson [D]DIVU.G opcodes to decodetree target/mips: Convert Loongson [D]MOD[U].G opcodes to decodetree target/mips: Convert Loongson [D]MULT[U].G opcodes to decodetree target/mips: Remove unreachable 32-bit code on 64-bit Loongson Ext target/mips/tcg/translate.h | 3 + target/mips/tcg/godson2.decode | 27 +++ target/mips/tcg/loong-ext.decode | 28 +++ target/mips/tcg/loong_translate.c | 271 ++++++++++++++++++++++++++++++ target/mips/tcg/translate.c | 271 ++---------------------------- target/mips/tcg/meson.build | 3 + 6 files changed, 348 insertions(+), 255 deletions(-) create mode 100644 target/mips/tcg/godson2.decode create mode 100644 target/mips/tcg/loong-ext.decode create mode 100644 target/mips/tcg/loong_translate.c