From 760c0f6a1adca1236c856d879d48f77096a35ac9 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 20 Jul 2005 19:36:54 +0000 Subject: [PATCH] * disassemble.c (disassemble_init_for_target): M32C ISAs are enums, so convert them to bit masks, which attributes are. --- opcodes/ChangeLog | 5 +++++ opcodes/disassemble.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 547dc3377f9..2a5d475ea5b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2005-07-20 DJ Delorie + + * disassemble.c (disassemble_init_for_target): M32C ISAs are + enums, so convert them to bit masks, which attributes are. + 2005-07-18 Nick Clifton * configure.in: Restore alpha ordering to list of arches. diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 377e64f7b97..cbecfcdf40e 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -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: -- 2.30.2