Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Disassemble TEQ correctly.



details:   https://anonhg.NetBSD.org/src/rev/4e32c29da251
branches:  trunk
changeset: 953681:4e32c29da251
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Mar 16 07:34:44 2021 +0000

description:
Disassemble TEQ correctly.

XXX: May be others that use this format?

diffstat:

 sys/arch/mips/mips/db_disasm.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 1e238d513856 -r 4e32c29da251 sys/arch/mips/mips/db_disasm.c
--- a/sys/arch/mips/mips/db_disasm.c    Tue Mar 16 07:00:38 2021 +0000
+++ b/sys/arch/mips/mips/db_disasm.c    Tue Mar 16 07:34:44 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_disasm.c,v 1.33 2020/08/17 03:14:08 mrg Exp $       */
+/*     $NetBSD: db_disasm.c,v 1.34 2021/03/16 07:34:44 simonb Exp $    */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.33 2020/08/17 03:14:08 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.34 2021/03/16 07:34:44 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -365,6 +365,13 @@
                        db_printf("\t%d", (i.RType.rs << 5) | i.RType.rt);
                        break;
 
+               case OP_TEQ:
+                       db_printf("\t%s,%s,%#x",
+                           reg_name[i.RType.rs],
+                           reg_name[i.RType.rt],
+                           (i.RType.rd << 5) | i.RType.shamt);
+                       break;
+
                default:
                        db_printf("\t%s,%s,%s",
                            reg_name[i.RType.rd],



Home | Main Index | Thread Index | Old Index