Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2019 01:52:50 +0000 (UTC)
From:      Brandon Bergren <bdragon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354270 - head/sys/powerpc/powerpc
Message-ID:  <201911030152.xA31qobW069805@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 },



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911030152.xA31qobW069805>