From nobody Tue Feb 10 04:08:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.218.54 as permitted sender) client-ip=209.85.218.54; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-f54.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1614033562; cv=none; d=zohomail.com; s=zohoarc; b=HsFMRonoZv9IDihS0jiRGoshnuuyBZTxovBuUEWy9dQtVt4vTOZQSdrUp/SNwEQC2Y1cmrvOmvJnn0JPMZJ7tMWIBzR9IOBOZebBrEaLRSDgQhPaWCVhrcEGu2Cn8xFrsqil0EVkcG29X/14rJ8iJeUDqJQ4J4CU73p7WByBG0g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614033562; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cPqTdlRSqWnikQijLksatBH+7i1gXhB78//9AOt2jP4=; b=HcUS0vCzAWPgyvHPZNCQHEHuZctjs8K/nTZWv2VyfPDAk8jONBzM1XZCCEfctGSKUIB63HzcXoS5gS7sey+B4JO/3u6hdgS/aLms/8ysjrJ0ooidRnRVT+LEF2W7715FaZpsdPWp8f66AMU/nROJF6YEoF8ygLQ48GE0B/JiwvQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mx.zohomail.com with SMTPS id 1614033562070449.35999998568343; Mon, 22 Feb 2021 14:39:22 -0800 (PST) Received: by mail-ej1-f54.google.com with SMTP id j6so4695554eja.12 for ; Mon, 22 Feb 2021 14:39:21 -0800 (PST) Return-Path: Return-Path: 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 t8sm6020479edv.16.2021.02.22.14.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 14:39:19 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=cPqTdlRSqWnikQijLksatBH+7i1gXhB78//9AOt2jP4=; b=a/01CO6tXJxmMY3kw+cP21Liy1AZQZTARkuvs0tlrbaVWv+hv1Gr+NRew+rTs9AZc7 hcul3CTLE2f99YV9wb/Xq5/hdg89YQGRGhnKfttnFdwNWN5JzDh3Lghl8Ic64Jc4J0CF WkoJPBRhxzLuzfQBQGib524mF4tLZZHdIhSBADHm0qjnNh20i3Y5XC31ZQeLRY8r8m6/ FgXj0vmBZsnT8n+18TdgGkc/8+RJTF67dVtMSApqQUoF1KocjwYgM6dbGqIgpbkFUhBR pCkYLOqhUNYbBvpDgG+IBcDqE9y8Mm9Zn7IcaliRvM0vq/m3C/9LRM+d1GsUPNsVsMhh DnSg== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=cPqTdlRSqWnikQijLksatBH+7i1gXhB78//9AOt2jP4=; b=PVtMYVn8PKsPzzm3s2aJ/p90McFt55ZIE6Pdo8XELw7WhkI1afFu+ouMDwJ+Xsqq1k vHVGXp3iXy1Vht+biMnlnVL69jE55GqMZBBkAO43X4iPS2jMOOdRYZnbuE8bsR//vzxO gw0Cl8qeuFyAZtc9AJiAj7YvdlhuMLyIZZlbU8xHw4tntfnXE7JIQ0Au4NCg/V5v4qh5 WmoNrKMnERemLnDM73tHPl/raI1wfB09Wz17Ij3GCNdJHLQdZNKncJ3/2ji/q175J0Dq jB2qCBzXr2rpaT9+rDmb7HBg/5zbQR6VNZr6OCY3wKBchTTxYZUXwUBWKi+uIzNR60pf Nomg== X-Gm-Message-State: AOAM531WSvSr/OvfbAMGO4I7lns0klBMsOBaFd+1oCbyljnL3WTy3ymP klaakrQETj7s5KPiUwxiVlQ= X-Google-Smtp-Source: ABdhPJxTH4vuh1nVGvBpb8QkyYSWx3EcK/jikVJr8pUegjBFk2PYReAGEJnUBJXrci++4aA13keOcQ== X-Received: by 2002:a17:907:da3:: with SMTP id go35mr22123070ejc.26.1614033560369; Mon, 22 Feb 2021 14:39:20 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Aurelien Jarno , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo Subject: [PATCH v3 03/10] target/mips: Remove unused CPUMIPSState* from MXU functions Date: Mon, 22 Feb 2021 23:38:54 +0100 Message-Id: <20210222223901.2792336-4-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210222223901.2792336-1-f4bug@amsat.org> References: <20210222223901.2792336-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) None of these MXU functions use their CPUMIPSState* env argument, remove it. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/mips/translate.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index a53ce6adb9a..6f5ccd667da 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -25694,7 +25694,7 @@ static void gen_mxu_S32ALNI(DisasContext *ctx) * =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */ =20 -static void decode_opc_mxu__pool00(CPUMIPSState *env, DisasContext *ctx) +static void decode_opc_mxu__pool00(DisasContext *ctx) { uint32_t opcode =3D extract32(ctx->opcode, 18, 3); =20 @@ -25718,7 +25718,7 @@ static void decode_opc_mxu__pool00(CPUMIPSState *en= v, DisasContext *ctx) } } =20 -static void decode_opc_mxu__pool04(CPUMIPSState *env, DisasContext *ctx) +static void decode_opc_mxu__pool04(DisasContext *ctx) { uint32_t opcode =3D extract32(ctx->opcode, 20, 1); =20 @@ -25734,7 +25734,7 @@ static void decode_opc_mxu__pool04(CPUMIPSState *en= v, DisasContext *ctx) } } =20 -static void decode_opc_mxu__pool16(CPUMIPSState *env, DisasContext *ctx) +static void decode_opc_mxu__pool16(DisasContext *ctx) { uint32_t opcode =3D extract32(ctx->opcode, 18, 3); =20 @@ -25761,7 +25761,7 @@ static void decode_opc_mxu__pool16(CPUMIPSState *en= v, DisasContext *ctx) } } =20 -static void decode_opc_mxu__pool19(CPUMIPSState *env, DisasContext *ctx) +static void decode_opc_mxu__pool19(DisasContext *ctx) { uint32_t opcode =3D extract32(ctx->opcode, 22, 2); =20 @@ -25780,7 +25780,7 @@ static void decode_opc_mxu__pool19(CPUMIPSState *en= v, DisasContext *ctx) /* * Main MXU decoding function */ -static void decode_opc_mxu(CPUMIPSState *env, DisasContext *ctx) +static void decode_opc_mxu(DisasContext *ctx) { uint32_t opcode =3D extract32(ctx->opcode, 0, 6); =20 @@ -25817,7 +25817,7 @@ static void decode_opc_mxu(CPUMIPSState *env, Disas= Context *ctx) =20 switch (opcode) { case OPC_MXU__POOL00: - decode_opc_mxu__pool00(env, ctx); + decode_opc_mxu__pool00(ctx); break; case OPC_MXU_D16MUL: gen_mxu_d16mul(ctx); @@ -25826,16 +25826,16 @@ static void decode_opc_mxu(CPUMIPSState *env, Dis= asContext *ctx) gen_mxu_d16mac(ctx); break; case OPC_MXU__POOL04: - decode_opc_mxu__pool04(env, ctx); + decode_opc_mxu__pool04(ctx); break; case OPC_MXU_S8LDD: gen_mxu_s8ldd(ctx); break; case OPC_MXU__POOL16: - decode_opc_mxu__pool16(env, ctx); + decode_opc_mxu__pool16(ctx); break; case OPC_MXU__POOL19: - decode_opc_mxu__pool19(env, ctx); + decode_opc_mxu__pool19(ctx); break; default: MIPS_INVAL("decode_opc_mxu"); @@ -26995,7 +26995,7 @@ static bool decode_opc_legacy(CPUMIPSState *env, Di= sasContext *ctx) #endif #if !defined(TARGET_MIPS64) if (ctx->insn_flags & ASE_MXU) { - decode_opc_mxu(env, ctx); + decode_opc_mxu(ctx); break; } #endif --=20 2.26.2