* disassemble.c (disassemble_init_for_target): M32C ISAs are
authorDJ Delorie <dj@redhat.com>
Wed, 20 Jul 2005 19:36:54 +0000 (19:36 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 20 Jul 2005 19:36:54 +0000 (19:36 +0000)
enums, so convert them to bit masks, which attributes are.

opcodes/ChangeLog
opcodes/disassemble.c

index 547dc3377f96a752397963717e7fbe7f0e6db2b8..2a5d475ea5b406b496295fed59ddb2a9656a5a91 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2005-07-18  Nick Clifton  <nickc@redhat.com>
 
        * configure.in: Restore alpha ordering to list of arches.
index 377e64f7b978ee6fd403c7cb16391af5e23eeb02..cbecfcdf40ec715246b5335fdb573c23c1b72cfc 100644 (file)
@@ -452,9 +452,9 @@ disassemble_init_for_target (struct disassemble_info * info)
     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: