From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKvvq-0006tL-CC for qemu-devel@nongnu.org; Thu, 30 Jul 2015 18:04:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKvvp-0002Kr-GP for qemu-devel@nongnu.org; Thu, 30 Jul 2015 18:04:06 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:40058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKvvp-0002KF-B2 for qemu-devel@nongnu.org; Thu, 30 Jul 2015 18:04:05 -0400 From: Aurelien Jarno Date: Fri, 31 Jul 2015 00:03:59 +0200 Message-Id: <1438293840-7569-3-git-send-email-aurelien@aurel32.net> In-Reply-To: <1438293840-7569-1-git-send-email-aurelien@aurel32.net> References: <1438293840-7569-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 2/3] tcg/mips: Mask TCGMemOp appropriately for indexing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Richard Henderson Commit 2b7ec66f fixed TCGMemOp masking following the MO_AMASK addition, but two cases were forgotten in the TCG MIPS backend. Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- tcg/mips/tcg-target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 8dce19c..064db46 100644 --- a/tcg/mips/tcg-target.c +++ b/tcg/mips/tcg-target.c @@ -1105,7 +1105,7 @@ static void tcg_out_qemu_st_slow_path(TCGContext *s, TCGLabelQemuLdst *l) static void tcg_out_qemu_ld_direct(TCGContext *s, TCGReg datalo, TCGReg datahi, TCGReg base, TCGMemOp opc) { - switch (opc) { + switch (opc & (MO_SSIZE | MO_BSWAP)) { case MO_UB: tcg_out_opc_imm(s, OPC_LBU, datalo, base, 0); break; @@ -1195,7 +1195,7 @@ static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, bool is_64) static void tcg_out_qemu_st_direct(TCGContext *s, TCGReg datalo, TCGReg datahi, TCGReg base, TCGMemOp opc) { - switch (opc) { + switch (opc & (MO_SIZE | MO_BSWAP)) { case MO_8: tcg_out_opc_imm(s, OPC_SB, datalo, base, 0); break; -- 2.1.4