diff options
Diffstat (limited to 'bfd/cpu-k1om.c')
-rw-r--r-- | bfd/cpu-k1om.c | 38 |
1 files changed, 8 insertions, 30 deletions
diff --git a/bfd/cpu-k1om.c b/bfd/cpu-k1om.c index 927bab6..f5bcec1 100644 --- a/bfd/cpu-k1om.c +++ b/bfd/cpu-k1om.c @@ -25,36 +25,14 @@ extern void * bfd_arch_i386_short_nop_fill (bfd_size_type, bfd_boolean, bfd_boolean); +#define N(number, name, print, next) \ + { 64, 64, 8, bfd_arch_k1om, number, name, print, 3, TRUE, \ + bfd_default_compatible, bfd_default_scan, \ + bfd_arch_i386_short_nop_fill, next, 9 } + static const bfd_arch_info_type bfd_k1om_arch_intel_syntax = -{ - 64, /* 64 bits in a word */ - 64, /* 64 bits in an address */ - 8, /* 8 bits in a byte */ - bfd_arch_k1om, - bfd_mach_k1om_intel_syntax, - "k1om:intel", - "k1om:intel", - 3, - TRUE, - bfd_default_compatible, - bfd_default_scan, - bfd_arch_i386_short_nop_fill, - 0 -}; + N (bfd_mach_k1om_intel_syntax, "k1om:intel", "k1om:intel", NULL); const bfd_arch_info_type bfd_k1om_arch = -{ - 64, /* 64 bits in a word */ - 64, /* 64 bits in an address */ - 8, /* 8 bits in a byte */ - bfd_arch_k1om, - bfd_mach_k1om, - "k1om", - "k1om", - 3, - TRUE, - bfd_default_compatible, - bfd_default_scan, - bfd_arch_i386_short_nop_fill, - &bfd_k1om_arch_intel_syntax -}; + N (bfd_mach_k1om, "k1om", "k1om", &bfd_k1om_arch_intel_syntax); + |