From patchwork Tue Dec 8 20:36:51 2020 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: 1413050 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=RmsWMC1X; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CrDN33Sj2z9sVs for ; Wed, 9 Dec 2020 08:49:07 +1100 (AEDT) Received: from localhost ([::1]:41330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmkr3-0007lt-9H for incoming@patchwork.ozlabs.org; Tue, 08 Dec 2020 16:49:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmjjT-00047E-4y for qemu-devel@nongnu.org; Tue, 08 Dec 2020 15:37:11 -0500 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:41045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmjjR-0008Aw-0d for qemu-devel@nongnu.org; Tue, 08 Dec 2020 15:37:10 -0500 Received: by mail-ej1-x635.google.com with SMTP id ce23so22764408ejb.8 for ; Tue, 08 Dec 2020 12:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=89tDxb1NG5RhKGPI5IblTTONwvbtQrZRv1iQAnxqkp4=; b=RmsWMC1XwdapgWVn4d9EapH8W8iLX3YuUpRhVHpjtLYSDIJ1mu2qx1f0LExfL/2fFz Lt31PPZsU0aqS10PChlEo8pn/6kmcL1KWmIktGge8iVEPf6c6dMC5UuPsx5WrpFgCP1+ 7VIX2IML7/S1bt/ulFrTQfQ6tji8pddv7IBxUnXc7tPQ0yIq+nFhbjsJ4LwdrbF7xekZ IemKpXjMvXz0Pb/0ijPy2TCqtbS6YB7g2p8TZ0nt+QkKc9gkF3Y1KJq0So8fb+GdoI2u +atC4BhKzP8SFNKFS8zlqmEVb7MGT020mqAx2FR7Qni+Ya19pHz3M721PLYL76K7yRvT XiSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=89tDxb1NG5RhKGPI5IblTTONwvbtQrZRv1iQAnxqkp4=; b=oIANukYp6qpgCYWhQQbJCNV8gPcxz0TXjl1GyPMjvOsqbExIGgH4p1n02mSlpR341Y 9KFz6UoxK+cgiyLg8GNThp5qYRaM/MbpmhXN3K51F+TvinsSEGuPy0qo263CFu0c9Dbj s2sRh8HSRJC4S7Z1K1r/oWJVJ7ekOeSfQritJIYDhQC5UuM4+dUnj0eLfzydRPcU0MbY r8qiYOddkiOPTbdW0vRqRDsFZynWHM1lBUsTf6IjROSjmU4K2ILMwM3bQ9H84ci4P98V hjWsgT9brUbWOExnKG6heA+CLKpodiioKxtOTs/L4dtWqpzW4sRIXIB50TeQYvbyaoth A+nw== X-Gm-Message-State: AOAM532fDso0QZ1H4X8a1/4S+VaECA46zYsbuZ/mc7qRP31dLJ5Oh5F+ vYHDlnbzjWQRfPKAsTQVd4Tqx2zJO1M= X-Google-Smtp-Source: ABdhPJy56OFeDb7/zSP/aWY/tipeb+r02WRH7MO8uh9Wz3ZxLl3mudhUH4/zsFfQ7rfR9q0CmNXiZA== X-Received: by 2002:a17:906:af49:: with SMTP id ly9mr19357538ejb.38.1607459826936; Tue, 08 Dec 2020 12:37:06 -0800 (PST) Received: from x1w.redhat.com (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id u26sm17800029edo.37.2020.12.08.12.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 12:37:06 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 00/13] target/mips: Convert LSA/DLSA and part of the Rel6 removed opcodes Date: Tue, 8 Dec 2020 21:36:51 +0100 Message-Id: <20201208203704.243704-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Complete the MSA conversion with the LSA/DLSA opcodes, which are shared with the Release 6. Keep going converting the removed opcodes. We now have 2 decoders on 32-bit, and 4 on 64-bit. Extensions are decoded first, then ISA. I might introduce a macro to have a generic decode() function to hide the 32/64 check, to keep the main decode_opc() loop easy to review. Series available here: https://gitlab.com/philmd/qemu/-/tree/mips_decodetree_lsa_r6 Regards, Phil. Philippe Mathieu-Daudé (13): !fixup "target/mips/translate: Add declarations for generic code" target/mips: Extract LSA/DLSA translation generators target/mips: Introduce decodetree helpers for MSA LSA/DLSA opcodes target/mips: Introduce decodetree helpers for Release6 LSA/DLSA opcodes target/mips: Remove now unreachable LSA/DLSA opcodes code target/mips: Convert Rel6 Special2 opcode to decodetree target/mips: Convert Rel6 COP1X opcode to decodetree target/mips: Convert Rel6 CACHE/PREF opcodes to decodetree target/mips: Convert Rel6 LWL/LWR/SWL/SWR opcodes to decodetree target/mips: Convert Rel6 LWLE/LWRE/SWLE/SWRE opcodes to decodetree target/mips: Convert Rel6 LDL/LDR/SDL/SDR opcodes to decodetree target/mips: Convert Rel6 LLD/SCD opcodes to decodetree target/mips: Convert Rel6 LL/SC opcodes to decodetree target/mips/translate.h | 21 +++++- target/mips/isa-mips32r6.decode | 36 ++++++++++ target/mips/isa-mips64r6.decode | 26 +++++++ target/mips/mod-msa32.decode | 4 ++ target/mips/mod-msa64.decode | 17 +++++ target/mips/isa-mips_rel6_translate.c | 40 +++++++++++ target/mips/mod-msa_translate.c | 15 ++++ target/mips/translate.c | 98 +++++++-------------------- target/mips/translate_addr_const.c | 54 +++++++++++++++ target/mips/meson.build | 9 +++ 10 files changed, 245 insertions(+), 75 deletions(-) create mode 100644 target/mips/isa-mips32r6.decode create mode 100644 target/mips/isa-mips64r6.decode create mode 100644 target/mips/mod-msa64.decode create mode 100644 target/mips/isa-mips_rel6_translate.c create mode 100644 target/mips/translate_addr_const.c