svn commit: r320739 - head/sys/mips/mips

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Jul 6 15:08:52 UTC 2017


Author: trasz
Date: Thu Jul  6 15:08:51 2017
New Revision: 320739
URL: https://svnweb.freebsd.org/changeset/base/320739

Log:
  Make ddb(4) disassembler (x/i) use n32 register names.
  
  Obtained from:	CheriBSD
  MFC after:	2 weeks
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/mips/mips/db_disasm.c

Modified: head/sys/mips/mips/db_disasm.c
==============================================================================
--- head/sys/mips/mips/db_disasm.c	Thu Jul  6 15:03:54 2017	(r320738)
+++ head/sys/mips/mips/db_disasm.c	Thu Jul  6 15:08:51 2017	(r320739)
@@ -104,7 +104,11 @@ static char *fmt_name[16] = {
 
 static char *reg_name[32] = {
 	"zero",	"at",	"v0",	"v1",	"a0",	"a1",	"a2",	"a3",
+#if defined(__mips_n32) || defined(__mips_n64)
+	"a4",	"a5",	"a6",	"a7",	"t0",	"t1",	"t2",	"t3",
+#else
 	"t0",	"t1",	"t2",	"t3",	"t4",	"t5",	"t6",	"t7",
+#endif
 	"s0",	"s1",	"s2",	"s3",	"s4",	"s5",	"s6",	"s7",
 	"t8",	"t9",	"k0",	"k1",	"gp",	"sp",	"s8",	"ra"
 };


More information about the svn-src-all mailing list