From nobody Thu Nov 6 12:31:53 2025 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 1540920652397672.3357303814389; Tue, 30 Oct 2018 10:30:52 -0700 (PDT) Received: from localhost ([::1]:54625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHXqt-0002OY-8W for importer@patchew.org; Tue, 30 Oct 2018 13:30:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHXp1-0001Ct-5u for qemu-devel@nongnu.org; Tue, 30 Oct 2018 13:28:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHXos-0002nP-VF for qemu-devel@nongnu.org; Tue, 30 Oct 2018 13:28:54 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:44234 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 1gHXos-0002iH-4V for qemu-devel@nongnu.org; Tue, 30 Oct 2018 13:28:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id D8E3E1A4167; Tue, 30 Oct 2018 18:28:36 +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 A77D51A2443; Tue, 30 Oct 2018 18:28:36 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Tue, 30 Oct 2018 18:28:14 +0100 Message-Id: <1540920498-5133-2-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1540920498-5133-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1540920498-5133-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 1/5] 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, 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 60320cb..5c6f123 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, @@ -26338,7 +26338,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 */ @@ -26377,7 +26377,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 */ @@ -26409,7 +26409,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 */ @@ -26445,7 +26445,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 */ @@ -26472,7 +26472,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