From nobody Wed Nov 19 03:02:57 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.48 as permitted sender) client-ip=209.85.128.48; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f48.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.48 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1614193067; cv=none; d=zohomail.com; s=zohoarc; b=Y9HiOatNiF12rEG9Wvy2DG3a4+080HeP0ZIDoN8SOwEYLEvRB7FXiqWqu0w8W2Cnxu0VwTOYbPIvp8T905jCtPBLulBBcdiEEJcxJnwPk2L8rw0BJds1pANOAWRj6soBivXniBmyOT10b3uKb4seVpAm45hs/wmPcaWu94vvgDY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614193067; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IE7Z1PUDdNGO2QCn3y3Rte5L3sCvv5X28KeN2j6Nh84=; b=Vry3lYzJ/HS1d8XPb0XoOlT6yaYvMFtQUrVZ/WvIKZBNXo69PvN5LD92ZvYv5cfln9w+zflyPv+SHBbeOLl4nRCOmm6ar4BiM5Nzzpaq/vlpvC8mCFUomnRtYYO8bYeut2MfycA+WdxbzqnWI7+ONjYGRj5oUD7USOUVYExJDQ0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.48 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.zohomail.com with SMTPS id 1614193067779135.31049621378213; Wed, 24 Feb 2021 10:57:47 -0800 (PST) Received: by mail-wm1-f48.google.com with SMTP id n4so1343082wmq.3 for ; Wed, 24 Feb 2021 10:57:47 -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 s23sm4188596wmc.29.2021.02.24.10.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 10:57:45 -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=IE7Z1PUDdNGO2QCn3y3Rte5L3sCvv5X28KeN2j6Nh84=; b=PSlMnBOHSZobbD7Kxh2s2nH2DPT1yxiOe7qg5yDg5lqjtKD7u4yTYPPxU8bSsh/kLu w2sVmvoXqZZ4MuZ8LZxmmeIW9cPGx9/UbRQukiKhteoKMpQFIvnvIrOVlnkxqii9Rcal 96nh6XOfoFoqC78kasv9rY17mWLfws2GR9rpG3CAA2mKMM9M9BQVi7pu3675mxzCRyoI jduxh6cT4qaa1yj5W79w/0EJ7BYCJcTMyMjlCGZV3KJ2dUt7BzJyFWd6TSz4mTSMz0fv nvVqTMcFJOIFXIDX7jXL+EdMxoGrSW+j4gWGwWJF+OHXMNorAdAB5Rm0EeoynamSjmPk 4bRw== 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=IE7Z1PUDdNGO2QCn3y3Rte5L3sCvv5X28KeN2j6Nh84=; b=kgayVzoiPfme2dZdyM8LLdg8v4Q5eaGU19zGEpCmzwfJecCHgSrEXWzSw0kLJFJAlC oeemESLqAPLwI2CbqdRucjl0qL4teQiB8gnETk2Z4xsVzzKejsRlb81qK/my7M3uBlHN KJkC3QIIVnlc2r0FLTT5z4u2YPw/jVopVtimnTzFQX2bK2zFxDg9dEsPxCH3nQ/m+xEG SdKmuWH8VFTQ3sZzWLmuUUOiEfv3kq74903i12oG0/qzgu36qV2iNu86psRcDeI6WL+u i6TKPgbPwb1sDsCF0IqPHIYHC8ljs9wu1VlBxkbeolmn+K05YzYEw4rdx8PKiKGYDMel bnKg== X-Gm-Message-State: AOAM5322/gRTLKBeHty6I2hlnNWQJdgeI9DI7y814HVt+ezWBkviSVM8 50CvLn1ap5nTRHPuYvBkeUI= X-Google-Smtp-Source: ABdhPJxpxUDtL6dKwJoS8/0p9Cy9IF3BU7hcFBSRObhMyJXGEnAUKp2Kdx0G74DqHuAK2Pb+cyWHPg== X-Received: by 2002:a05:600c:4f07:: with SMTP id l7mr4916414wmq.141.1614193065872; Wed, 24 Feb 2021 10:57:45 -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: Craig Janeczek , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Richard Henderson , Aurelien Jarno Subject: [PATCH v4 05/12] target/mips: Remove unused CPUMIPSState* from MXU functions Date: Wed, 24 Feb 2021 19:56:59 +0100 Message-Id: <20210224185706.3293058-6-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210224185706.3293058-1-f4bug@amsat.org> References: <20210224185706.3293058-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. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- 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