This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: disassembler bug


On Wed, Sep 04, 2002 at 02:55:56PM -0700, Gary Hade wrote:
[snip]
> # as -mpower4 -o mftb.o mftb.s
> # objdump -Mpower4 -d mftb.o
> #
> 	.section ".text"
> start:
> 	mftb	7
> 	mftbl	7
> 	mftb	7,268
> 	mftbu	7
> 	mftb	7,269
[snip]
> Disassembly of section .text:
> 
> 0000000000000000 <start>:
>    0:	7c ec 42 e6	.long 0x7cec42e6
>    4:	7c ec 42 e6	.long 0x7cec42e6
>    8:	7c ec 42 e6	.long 0x7cec42e6
>    c:	7c ed 42 e6	.long 0x7ced42e6
>   10:	7c ed 42 e6	.long 0x7ced42e6

Hi Gary,
  I applied slightly modified version of your patch, adding parentheses
so that emacs formatting commands keep the indentation.

opcodes/ChangeLog
	* ppc-dis.c (powerpc_dialect): Add missing PPC_OPCODE_CLASSIC.

Index: ppc-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/ppc-dis.c,v
retrieving revision 1.10
diff -u -p -r1.10 ppc-dis.c
--- ppc-dis.c	4 Sep 2002 10:08:08 -0000	1.10
+++ ppc-dis.c	12 Sep 2002 03:52:35 -0000
@@ -75,7 +75,8 @@ powerpc_dialect(info)
 	dialect &= ~PPC_OPCODE_ALTIVEC;
       }
   else
-    dialect |= PPC_OPCODE_403 | PPC_OPCODE_601 | PPC_OPCODE_COMMON;
+    dialect |= (PPC_OPCODE_403 | PPC_OPCODE_601 | PPC_OPCODE_CLASSIC
+		| PPC_OPCODE_COMMON);
 
   if (info->disassembler_options
       && strcmp (info->disassembler_options, "power4") == 0)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]