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.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 916CFC433E0 for ; Wed, 24 Feb 2021 18:59:03 +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 8D6C564F0D for ; Wed, 24 Feb 2021 18:59:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D6C564F0D 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]:60342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEzNF-0008CX-4i for qemu-devel@archiver.kernel.org; Wed, 24 Feb 2021 13:59:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEzLU-0005sd-IE for qemu-devel@nongnu.org; Wed, 24 Feb 2021 13:57:12 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:43936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEzLS-0002Ui-LV for qemu-devel@nongnu.org; Wed, 24 Feb 2021 13:57:12 -0500 Received: by mail-wr1-x42d.google.com with SMTP id w11so2888694wrr.10 for ; Wed, 24 Feb 2021 10:57:10 -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=Dj13YrzgTbtVZjjVZROsxXbo1mqZjBV3ebmaGke9Whs=; b=ulMrcTwHOpfPI7jAEFBwE9jtD8VETijAkHlILHwEuKGJRDMtFhI7d+JG0nUR1m1hEM EvOhI/VuHe/pf3YGsb47i6GZbYmceNBa5OWiI85ejVUnywZ5fq4GZ8U21xdK2PO/O8ik XJKaNMACg86zteIhjxEJBXnus0BX+KV7Bam1DkWUKg0uEjXZWJN9zTyMNg9P8/y71irE G/FAjjuBuPqKog06EG0v7oOJI8B/LLD57q+DpNzbHf8OKQRJwjgr/FXM7QN7TRNY5Zt0 WHHux9SnI1yNgTVnm9Mvy8s6kZ0KacieTKmuynnIvqtJ8mRHq6IL44LvvlhlNSpf/0mX OIlA== 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=Dj13YrzgTbtVZjjVZROsxXbo1mqZjBV3ebmaGke9Whs=; b=rLfDkNcGBiWzH8nldgyOTbPsBdr5MV6odE5X4GOf4/zZcnMvDLpW3vvh9M5ewWkJlT Bub4mm8z9ATaH53mQMk/273mZ5WB7y0t2rQD1qyFhvxTQKS5Qr2RDKIcRYTrUCkNW7Ee MN/hhLnV1BJXfav4mkd9vBCxgj3ie6awa4zb8UDM64ZOHILF3EjBbsrdbeSWTHcEQFeS NbMhlygoFyUV+/bAfbC/+CXA3CXOdlqyPFx3KRGEJU0uF9IOVhTxzLh5ZIn2Twcab+sd ybe+Qr4A3FbQhxaT4W+JcvVJC+DHtQVe+Xu3U6lsC1VCJGoVl024zDX5VIyGoP9X7G/s 1btw== X-Gm-Message-State: AOAM530nVyGIiIvpnhN4iHh+SJXK2eZGeiu051kFD1GNHH68mBuyu7wU Y3Mw9zlvw8KFQVCp6JRrmVy/AiXjlIM= X-Google-Smtp-Source: ABdhPJxdIGAFHXInamOR9bzPU5jw+uMbfYXay4aaqpKMjHAfgrQxW9cocagCoANeov6miooG9CkY0g== X-Received: by 2002:a5d:4521:: with SMTP id j1mr6268903wra.354.1614193028780; Wed, 24 Feb 2021 10:57:08 -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 u4sm4849164wrr.37.2021.02.24.10.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 10:57:08 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 00/12] target/mips: Extract MXU code to new mxu_translate.c file Date: Wed, 24 Feb 2021 19:56:54 +0100 Message-Id: <20210224185706.3293058-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x42d.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.25, 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 , Craig Janeczek , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since v3:=0D - addressed Richard's review comments, elide code when possible=0D =0D This is a respin of "Extract XBurst Media eXtension Unit=0D translation routines" v2:=0D https://lists.gnu.org/archive/html/qemu-devel/2020-11/msg05889.html=0D =0D But instead of an included C file (.c.inc) we now have an=0D independent C unit. We gain faster recompilation time when=0D hacking translate.c or mxu_translate.c, and we also gain=0D in code maintainability.=0D =0D $ git backport-diff -u v3=0D Key:=0D [----] : patches are identical=0D [####] : number of functional differences between upstream/downstream patch= =0D [down] : patch is downstream-only=0D The flags [FC] indicate (F)unctional and (C)ontextual differences, respecti= ve=3D=0D ly=0D =0D 001/12:[down] 'target/mips/meson: Introduce mips_tcg source set'=0D 002/12:[down] 'target/mips/meson: Restrict mips-semi.c to TCG'=0D 003/12:[----] [--] 'target/mips: Rewrite complex ifdef'ry'=0D 004/12:[----] [--] 'target/mips: Remove XBurst Media eXtension Unit dead co= de'=0D 005/12:[----] [--] 'target/mips: Remove unused CPUMIPSState* from MXU funct= io=3D=0D ns'=0D 006/12:[----] [--] 'target/mips: Pass instruction opcode to decode_opc_mxu(= )'=0D 007/12:[0002] [FC] 'target/mips: Use OPC_MUL instead of OPC__MXU_MUL'=0D 008/12:[down] 'target/mips: Move MUL opcode check from decode_mxu() to deco= de=3D=0D _legacy()'=0D 009/12:[down] 'target/mips: Convert decode_opc_mxu() to decodetree prototyp= e'=0D 010/12:[down] 'target/mips: Simplify decode_opc_mxu() ifdef'ry'=0D 011/12:[0011] [FC] 'target/mips: Introduce mxu_translate_init() helper'=0D 012/12:[0037] [FC] 'target/mips: Extract MXU code to new mxu_translate.c fi= le'=0D =0D Philippe Mathieu-Daud=3DC3=3DA9 (12):=0D target/mips/meson: Introduce mips_tcg source set=0D target/mips/meson: Restrict mips-semi.c to TCG=0D target/mips: Rewrite complex ifdef'ry=0D target/mips: Remove XBurst Media eXtension Unit dead code=0D target/mips: Remove unused CPUMIPSState* from MXU functions=0D target/mips: Pass instruction opcode to decode_opc_mxu()=0D target/mips: Use OPC_MUL instead of OPC__MXU_MUL=0D target/mips: Move MUL opcode check from decode_mxu() to=0D decode_legacy()=0D target/mips: Convert decode_opc_mxu() to decodetree prototype=0D target/mips: Simplify decode_opc_mxu() ifdef'ry=0D target/mips: Introduce mxu_translate_init() helper=0D target/mips: Extract MXU code to new mxu_translate.c file=0D =0D target/mips/translate.h | 4 +=0D target/mips/mxu_translate.c | 1609 +++++++++++++++++++=0D target/mips/translate.c | 2920 +----------------------------------=0D target/mips/meson.build | 13 +-=0D 4 files changed, 1636 insertions(+), 2910 deletions(-)=0D create mode 100644 target/mips/mxu_translate.c=0D =0D --=3D20=0D 2.26.2=0D =0D