diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-23 17:03:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-23 17:03:28 +0000 |
commit | e745accd0330d202385e3919ed8051f64844b04b (patch) | |
tree | 4878d8c55dcc550d92088c7e0950bbb871a7babc /sys/arch/mips64 | |
parent | 90113fd8220642cc35a83b4ebea563a9a933d369 (diff) |
Output operands of movn and movz in the correct order.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/db_disasm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/mips64/mips64/db_disasm.c b/sys/arch/mips64/mips64/db_disasm.c index 975a0a505f5..e3852cd508a 100644 --- a/sys/arch/mips64/mips64/db_disasm.c +++ b/sys/arch/mips64/mips64/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.16 2012/09/29 21:37:03 miod Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.17 2015/09/23 17:03:27 miod Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. @@ -51,7 +51,7 @@ * SUCH DAMAGE. * * from: @(#)kadb.c 8.1 (Berkeley) 6/10/93 - * $Id: db_disasm.c,v 1.16 2012/09/29 21:37:03 miod Exp $ + * $Id: db_disasm.c,v 1.17 2015/09/23 17:03:27 miod Exp $ */ #ifdef _KERNEL @@ -640,8 +640,6 @@ dbmd_print_insn(uint32_t ins, db_addr_t mdbdot, int (*pr)(const char *, ...)) case OP_SLLV: case OP_SRLV: case OP_SRAV: - case OP_MOVZ: - case OP_MOVN: case OP_DSLLV: case OP_DSRLV: case OP_DSRAV: @@ -694,6 +692,8 @@ dbmd_print_insn(uint32_t ins, db_addr_t mdbdot, int (*pr)(const char *, ...)) case OP_BREAK: (*pr)("\t%d", ins >> 16); break; + case OP_MOVZ: + case OP_MOVN: default: (*pr)("\t%s,%s,%s", reg_name[i.RType.rd], reg_name[i.RType.rs], @@ -843,6 +843,7 @@ unknown: goto unknown; else (*pr)("%s", insn); + break; case OP_TFP_C0MISC: if (i.FRType.func < nitems(cop0_tfp_miscname)) insn = cop0_tfp_miscname[i.FRType.func]; @@ -852,6 +853,7 @@ unknown: goto unknown; else (*pr)("%s", insn); + break; default: goto unknown; }; |