This is the mail archive of the binutils@sourceware.org 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]

comment on m32c endian


To stop future confusion.

	* disassemble.c: Formatting.
	(disassemble_init_for_target <ARCH_m32c>): Comment on endian.

Index: opcodes/disassemble.c
===================================================================
RCS file: /cvs/src/src/opcodes/disassemble.c,v
retrieving revision 1.77
diff -u -p -r1.77 disassemble.c
--- opcodes/disassemble.c	29 Jun 2010 04:17:33 -0000	1.77
+++ opcodes/disassemble.c	6 Aug 2010 03:43:48 -0000
@@ -114,10 +114,8 @@ disassembler (abfd)
 #endif
 #ifdef ARCH_arc
     case bfd_arch_arc:
-      {
-	disassemble = arc_get_disassembler (abfd);
-	break;
-      }
+      disassemble = arc_get_disassembler (abfd);
+      break;
 #endif
 #ifdef ARCH_arm
     case bfd_arch_arm:
@@ -317,9 +315,9 @@ disassembler (abfd)
 #ifdef ARCH_or32
     case bfd_arch_or32:
       if (bfd_big_endian (abfd))
-        disassemble = print_insn_big_or32;
+	disassemble = print_insn_big_or32;
       else
-        disassemble = print_insn_little_or32;
+	disassemble = print_insn_little_or32;
       break;
 #endif
 #ifdef ARCH_pdp11
@@ -361,9 +359,9 @@ disassembler (abfd)
 #ifdef ARCH_score
     case bfd_arch_score:
       if (bfd_big_endian (abfd))
-        disassemble = print_insn_big_score;      
+	disassemble = print_insn_big_score;
       else
-        disassemble = print_insn_little_score; 
+	disassemble = print_insn_little_score;
      break;
 #endif
 #ifdef ARCH_sh
@@ -530,6 +528,8 @@ disassemble_init_for_target (struct disa
 #endif
 #ifdef ARCH_m32c
     case bfd_arch_m32c:
+      /* This processor in fact is little endian.  The value set here
+	 reflects the way opcodes are written in the cgen description.  */
       info->endian = BFD_ENDIAN_BIG;
       if (! info->insn_sets)
 	{

-- 
Alan Modra
Australia Development Lab, IBM


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