From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhbZo-0001Dx-G6 for qemu-devel@nongnu.org; Thu, 01 Oct 2015 06:59:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhbZl-0005MV-Hf for qemu-devel@nongnu.org; Thu, 01 Oct 2015 06:59:04 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:18787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhbZl-0005MF-Ci for qemu-devel@nongnu.org; Thu, 01 Oct 2015 06:59:01 -0400 From: James Hogan Date: Thu, 1 Oct 2015 11:58:46 +0100 Message-ID: <1443697130-21431-3-git-send-email-james.hogan@imgtec.com> In-Reply-To: <1443697130-21431-1-git-send-email-james.hogan@imgtec.com> References: <1443697130-21431-1-git-send-email-james.hogan@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 2/6] disas/mips: Add R6 jr/jr.hb to disassembler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: James Hogan , Leon Alrae , Aurelien Jarno , Richard Henderson MIPS r6 encodes jr as jalr zero, and jr.hb as jalr.hb zero, so add these encodings to the MIPS disassembly table. Signed-off-by: James Hogan Cc: Aurelien Jarno Cc: Leon Alrae --- disas/mips.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/disas/mips.c b/disas/mips.c index 01336a83852d..2a24014f2cae 100644 --- a/disas/mips.c +++ b/disas/mips.c @@ -2420,9 +2420,11 @@ const struct mips_opcode mips_builtin_opcodes[] = {"hibernate","", 0x42000023, 0xffffffff, 0, 0, V1 }, {"ins", "t,r,+A,+B", 0x7c000004, 0xfc00003f, WR_t|RD_s, 0, I33 }, {"jr", "s", 0x00000008, 0xfc1fffff, UBD|RD_s, 0, I1 }, +{"jr", "s", 0x00000009, 0xfc1fffff, UBD|RD_s, 0, I32R6 }, /* jalr */ /* jr.hb is officially MIPS{32,64}R2, but it works on R1 as jr with the same hazard barrier effect. */ {"jr.hb", "s", 0x00000408, 0xfc1fffff, UBD|RD_s, 0, I32 }, +{"jr.hb", "s", 0x00000408, 0xfc1fffff, UBD|RD_s, 0, I32R6 }, /* jalr.hb */ {"j", "s", 0x00000008, 0xfc1fffff, UBD|RD_s, 0, I1 }, /* jr */ /* SVR4 PIC code requires special handling for j, so it must be a macro. */ -- 2.4.9