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]

[m32c] disassbler oops


This got missed in the bitset->int conversion.

2005-07-20  DJ Delorie  <dj@redhat.com>

	* disassemble.c (disassemble_init_for_target): M32C ISAs are
	enums, so convert them to bit masks, which attributes are.

Index: disassemble.c
===================================================================
RCS file: /cvs/src/src/opcodes/disassemble.c,v
retrieving revision 1.54
diff -p -U3 -r1.54 disassemble.c
--- disassemble.c	18 Jul 2005 14:13:29 -0000	1.54
+++ disassemble.c	20 Jul 2005 19:34:17 -0000
@@ -452,9 +452,9 @@ disassemble_init_for_target (struct disa
     case bfd_arch_m32c:
       info->endian = BFD_ENDIAN_BIG;
       if (info->mach == bfd_mach_m16c)
-	info->insn_sets = ISA_M16C;
+	info->insn_sets = 1 << ISA_M16C;
       else
-	info->insn_sets = ISA_M32C;
+	info->insn_sets = 1 << ISA_M32C;
       break;
 #endif
     default:


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