From nobody Mon Feb 9 20:12:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1542480044518566.2486285319957; Sat, 17 Nov 2018 10:40:44 -0800 (PST) Received: from localhost ([::1]:50135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gO5WH-0002FQ-OR for importer@patchew.org; Sat, 17 Nov 2018 13:40:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gO5UO-00014E-EA for qemu-devel@nongnu.org; Sat, 17 Nov 2018 13:38:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gO5UL-00022D-Va for qemu-devel@nongnu.org; Sat, 17 Nov 2018 13:38:40 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:54265 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gO5UL-00021M-K0 for qemu-devel@nongnu.org; Sat, 17 Nov 2018 13:38:37 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 529751A20A1; Sat, 17 Nov 2018 19:38:34 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 1484B1A2083; Sat, 17 Nov 2018 19:38:34 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Sat, 17 Nov 2018 19:38:24 +0100 Message-Id: <1542479908-20067-8-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542479908-20067-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1542479908-20067-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PULL v2 07/11] target/mips: Rename MMI-related masks X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Rename MMI-related masks. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- 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 714f2e6..12591c1 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -2201,7 +2201,7 @@ enum { * 7 111 | * | * | * | * | PSLLW | * | PSRLW | PSRAW */ =20 -#define MASK_TX79_MMI(op) (MASK_OP_MAJOR(op) | ((op) & 0x3F)) +#define MASK_MMI(op) (MASK_OP_MAJOR(op) | ((op) & 0x3F)) enum { TX79_MMI_MADD =3D 0x00 | TX79_CLASS_MMI, /* Same as OPC_MADD */ TX79_MMI_MADDU =3D 0x01 | TX79_CLASS_MMI, /* Same as OPC_MADDU */ @@ -2252,7 +2252,7 @@ enum { * 7 111 | * | * | PEXT5 | PPAC5 */ =20 -#define MASK_TX79_MMI0(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) +#define MASK_MMI0(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) enum { TX79_MMI0_PADDW =3D (0x00 << 6) | TX79_MMI_CLASS_MMI0, TX79_MMI0_PSUBW =3D (0x01 << 6) | TX79_MMI_CLASS_MMI0, @@ -2303,7 +2303,7 @@ enum { * 7 111 | * | * | * | * */ =20 -#define MASK_TX79_MMI1(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) +#define MASK_MMI1(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) enum { TX79_MMI1_PABSW =3D (0x01 << 6) | TX79_MMI_CLASS_MMI1, TX79_MMI1_PCEQW =3D (0x02 << 6) | TX79_MMI_CLASS_MMI1, @@ -2347,7 +2347,7 @@ enum { * 7 111 | PMULTH| PDIVBW| PEXEW | PROT3W */ =20 -#define MASK_TX79_MMI2(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) +#define MASK_MMI2(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) enum { TX79_MMI2_PMADDW =3D (0x00 << 6) | TX79_MMI_CLASS_MMI2, TX79_MMI2_PSLLVW =3D (0x02 << 6) | TX79_MMI_CLASS_MMI2, @@ -2395,7 +2395,7 @@ enum { * 7 111 | * | * | PEXCW | * */ =20 -#define MASK_TX79_MMI3(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) +#define MASK_MMI3(op) (MASK_OP_MAJOR(op) | ((op) & 0x7FF)) enum { TX79_MMI3_PMADDUW =3D (0x00 << 6) | TX79_MMI_CLASS_MMI3, TX79_MMI3_PSRAVW =3D (0x03 << 6) | TX79_MMI_CLASS_MMI3, @@ -26466,7 +26466,7 @@ static void decode_opc_special3_legacy(CPUMIPSState= *env, DisasContext *ctx) =20 static void decode_tx79_mmi0(CPUMIPSState *env, DisasContext *ctx) { - uint32_t opc =3D MASK_TX79_MMI0(ctx->opcode); + uint32_t opc =3D MASK_MMI0(ctx->opcode); =20 switch (opc) { case TX79_MMI0_PADDW: /* TODO: TX79_MMI0_PADDW */ @@ -26505,7 +26505,7 @@ static void decode_tx79_mmi0(CPUMIPSState *env, Dis= asContext *ctx) =20 static void decode_tx79_mmi1(CPUMIPSState *env, DisasContext *ctx) { - uint32_t opc =3D MASK_TX79_MMI1(ctx->opcode); + uint32_t opc =3D MASK_MMI1(ctx->opcode); =20 switch (opc) { case TX79_MMI1_PABSW: /* TODO: TX79_MMI1_PABSW */ @@ -26537,7 +26537,7 @@ static void decode_tx79_mmi1(CPUMIPSState *env, Dis= asContext *ctx) =20 static void decode_tx79_mmi2(CPUMIPSState *env, DisasContext *ctx) { - uint32_t opc =3D MASK_TX79_MMI2(ctx->opcode); + uint32_t opc =3D MASK_MMI2(ctx->opcode); =20 switch (opc) { case TX79_MMI2_PMADDW: /* TODO: TX79_MMI2_PMADDW */ @@ -26573,7 +26573,7 @@ static void decode_tx79_mmi2(CPUMIPSState *env, Dis= asContext *ctx) =20 static void decode_tx79_mmi3(CPUMIPSState *env, DisasContext *ctx) { - uint32_t opc =3D MASK_TX79_MMI3(ctx->opcode); + uint32_t opc =3D MASK_MMI3(ctx->opcode); =20 switch (opc) { case TX79_MMI3_PMADDUW: /* TODO: TX79_MMI3_PMADDUW */ @@ -26600,7 +26600,7 @@ static void decode_tx79_mmi3(CPUMIPSState *env, Dis= asContext *ctx) =20 static void decode_tx79_mmi(CPUMIPSState *env, DisasContext *ctx) { - uint32_t opc =3D MASK_TX79_MMI(ctx->opcode); + uint32_t opc =3D MASK_MMI(ctx->opcode); int rs =3D extract32(ctx->opcode, 21, 5); int rt =3D extract32(ctx->opcode, 16, 5); int rd =3D extract32(ctx->opcode, 11, 5); --=20 2.7.4