svn commit: r354270 - head/sys/powerpc/powerpc

Brandon Bergren bdragon at FreeBSD.org
Sun Nov 3 01:52:51 UTC 2019


Author: bdragon
Date: Sun Nov  3 01:52:50 2019
New Revision: 354270
URL: https://svnweb.freebsd.org/changeset/base/354270

Log:
  powerpc: Fix incorrect disassembly of the cntlzw instruction in ddb.
  
  Noticed while comparing disassembly between ddb and objdump.
  
  Approved by: jhibbits (mentor)
  Differential Revision: https://reviews.freebsd.org/D22121

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

Modified: head/sys/powerpc/powerpc/db_disasm.c
==============================================================================
--- head/sys/powerpc/powerpc/db_disasm.c	Sun Nov  3 01:25:46 2019	(r354269)
+++ head/sys/powerpc/powerpc/db_disasm.c	Sun Nov  3 01:52:50 2019	(r354270)
@@ -224,7 +224,7 @@ const struct opcode opcodes_1f[] = {
 	{ "ldx",	0xfc0007fe, 0x7c00002a, Op_D | Op_A | Op_B },
 	{ "lwzx",	0xfc0007fe, 0x7c00002e, Op_D | Op_A | Op_B },
 	{ "slw",	0xfc0007fe, 0x7c000030, Op_D | Op_A | Op_B | Op_Rc },
-	{ "cntlzw",	0xfc0007fe, 0x7c000034, Op_D | Op_A | Op_Rc },
+	{ "cntlzw",	0xfc0007fe, 0x7c000034, Op_S | Op_A | Op_Rc },
 	{ "sld",	0xfc0007fe, 0x7c000036, Op_D | Op_A | Op_B | Op_Rc },
 	{ "and",	0xfc0007fe, 0x7c000038, Op_D | Op_A | Op_B | Op_Rc },
 	{ "cmplw",	0xfc2007fe, 0x7c000040, Op_crfD | Op_A | Op_B },


More information about the svn-src-all mailing list