From patchwork Fri Feb 26 09:30:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 12106203 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 132E1C433E0 for ; Fri, 26 Feb 2021 09:33:40 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5FE3664E21 for ; Fri, 26 Feb 2021 09:33:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5FE3664E21 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:59006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFZVC-0005RV-4E for qemu-devel@archiver.kernel.org; Fri, 26 Feb 2021 04:33:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFZSv-00042r-SN for qemu-devel@nongnu.org; Fri, 26 Feb 2021 04:31:17 -0500 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]:44775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFZSu-0002gD-9G for qemu-devel@nongnu.org; Fri, 26 Feb 2021 04:31:17 -0500 Received: by mail-ej1-x62a.google.com with SMTP id w1so13655092ejf.11 for ; Fri, 26 Feb 2021 01:31:15 -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=wL3AGqhYSjF9EoFbnqDL5zekUK1XsP5iyKDd4gg/r0s=; b=aXpnSG2C3XsFoxkq/d6QanQRR0DzTMKeyvJP5HhEheHGlI9EmmJjkykBUDojib7Ul0 wX2lRdIXNepEiJwx4bMqVWyvWhQq1xQa3FpYmi4mT6OeqBCwzbIyw/Dw0bM7OgbjJvA6 Adqriw96VBdt1P+2VQ1j0b5wX7C6JPEfSeZMTvdA8PsiAjjxw6UFqmvRsyDT8voY3TQn 8phDZHUvQv34grU7Ql3Y3IBJi1fM7lR5X7Ei5zbnmMP9rYS/hVPdiehBTw5vTDCyg/jX bJyWbObq5LwYIDgA91rWcazDGuN9GyBfWnP0k3Iky2508g9ArDmHUPazSOGQgb7XrNq3 VygA== 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=wL3AGqhYSjF9EoFbnqDL5zekUK1XsP5iyKDd4gg/r0s=; b=tpVAbN6+40/P65PXKHLXImYjO1DetZ7wmg5/ZC9izP4UEVZOVOtEYQ0aWKBRWB0u78 rx0OSzvK+P0q9Ys/krLjCABWUokf9CsH2eZjBJ1bFnMXvAO7a8gNIjw09Riv0zk+tiE5 oFVvc+AtHr1AzWrcZKi1QYSf8+7REZjWl2PGQDSz2wRp4vB67PCnw9yq7l+URamLIJEf 3doW8vbbKdKnB8LJJ76NECk6ppncij6nZtjV2EmPz4M+ZBkFGGD1GQnKEtFiDMpqDNOe eFNg/gbBUdkzFfRZOWIejgjcTFlZhF9RprGGC4V2ZPiPL73b9qF8Zr72jOEC0UCfmHCl AFXw== X-Gm-Message-State: AOAM5334zvUnq8jAugwqb8y4wuEQrIvIOkdzUwpdYDec23TvX3Gktjs7 5DbUYRMrcZztyWXev3AmAQUphJrJngs= X-Google-Smtp-Source: ABdhPJyE7MiqVLl6rHJISNdL+55YxZ+x/tL6JzjF2e9fbkNqDSlxm235WtZ2RNijaiYi2N20U4gyYA== X-Received: by 2002:a17:907:78d9:: with SMTP id kv25mr2363748ejc.415.1614331873877; Fri, 26 Feb 2021 01:31:13 -0800 (PST) Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id b18sm4675285ejb.77.2021.02.26.01.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 01:31:13 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v5 00/13] target/mips: Extract MXU code to new mxu_translate.c file Date: Fri, 26 Feb 2021 10:30:57 +0100 Message-Id: <20210226093111.3865906-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::62a; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-x62a.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.249, 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 , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Series fully reviewed. Since v4: - Explicit decode_opc_mxu() -> decode_ase_mxu() renaming Since v3: - addressed Richard's review comments, elide code when possible $ git backport-diff -u v4 Key: [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respective= ly 001/13:[----] [--] 'target/mips/meson: Introduce mips_tcg source set' 002/13:[----] [--] 'target/mips/meson: Restrict mips-semi.c to TCG' 003/13:[----] [--] 'target/mips: Rewrite complex ifdef'ry' 004/13:[----] [--] 'target/mips: Remove XBurst Media eXtension Unit dead code' 005/13:[----] [--] 'target/mips: Remove unused CPUMIPSState* from MXU functio= ns' 006/13:[----] [--] 'target/mips: Pass instruction opcode to decode_opc_mxu()' 007/13:[----] [--] 'target/mips: Use OPC_MUL instead of OPC__MXU_MUL' 008/13:[----] [--] 'target/mips: Move MUL opcode check from decode_mxu() to d= ecode_legacy()' 009/13:[down] 'target/mips: Rename decode_opc_mxu() as decode_ase_mxu()' 010/13:[down] 'target/mips: Convert decode_ase_mxu() to decodetree prototype' 011/13:[----] [--] 'target/mips: Simplify decode_opc_mxu() ifdef'ry' 012/13:[----] [--] 'target/mips: Introduce mxu_translate_init() helper' 013/13:[----] [--] 'target/mips: Extract MXU code to new mxu_translate.c file' Philippe Mathieu-Daud=C3=A9 (13): target/mips/meson: Introduce mips_tcg source set target/mips/meson: Restrict mips-semi.c to TCG target/mips: Rewrite complex ifdef'ry target/mips: Remove XBurst Media eXtension Unit dead code target/mips: Remove unused CPUMIPSState* from MXU functions target/mips: Pass instruction opcode to decode_opc_mxu() target/mips: Use OPC_MUL instead of OPC__MXU_MUL target/mips: Move MUL opcode check from decode_mxu() to decode_legacy() target/mips: Rename decode_opc_mxu() as decode_ase_mxu() target/mips: Convert decode_ase_mxu() to decodetree prototype target/mips: Simplify decode_opc_mxu() ifdef'ry target/mips: Introduce mxu_translate_init() helper target/mips: Extract MXU code to new mxu_translate.c file target/mips/translate.h | 4 + target/mips/mxu_translate.c | 1609 +++++++++++++++++++ target/mips/translate.c | 2920 +---------------------------------- target/mips/meson.build | 13 +- 4 files changed, 1636 insertions(+), 2910 deletions(-) create mode 100644 target/mips/mxu_translate.c --=20 2.26.2