From f4984206d8fb20bec6cd4cf1c89adf3bc298824f Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 10 Jun 2003 07:09:31 +0000 Subject: include/elf/ * h8.h (E_H8_MACH_H8300SXN): New flag. bfd/ * archures.c (bfd_mach_h8300sxn): New architecture. * bfd-in2.h: Regenerate. * cpu-h8300.c (h8300_scan): Check for 'sxn'. (h8300sxn_info_struct): New. (h8300sx_info_struct): Link to it. * elf32-h8300.c (elf32_h8_mach): Add h8300sxn case. (elf32_h8_final_write_processing): Likewise. gas/ * config/tc-h8300.c (h8300sxnmode): New. (md_pseudo_table): Add .h8300sxn entry. Sync others with FSF version. ld/ * configure.tgt (h8300*): Add h8300sxn emulations. * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o. (eh8300sxn.c, eh8300sxnelf.c): New rules. * Makefile.in: Regenerate. * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files. --- gas/config/tc-h8300.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gas/config') diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 794a509..6e6a170 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -137,6 +137,20 @@ h8300sxmode (arg) } void +h8300sxnmode (arg) + int arg ATTRIBUTE_UNUSED; +{ + Smode = 1; + Hmode = 1; + SXmode = 1; + Nmode = 1; +#ifdef BFD_ASSEMBLER + if (!bfd_set_arch_mach (stdoutput, bfd_arch_h8300, bfd_mach_h8300sxn)) + as_warn (_("could not set architecture and machine")); +#endif +} + +void sbranch (size) int size; { @@ -163,6 +177,7 @@ const pseudo_typeS md_pseudo_table[] = {"h8300s", h8300smode, 0}, {"h8300sn", h8300snmode, 0}, {"h8300sx", h8300sxmode, 0}, + {"h8300sxn", h8300sxnmode, 0}, {"sbranch", sbranch, L_8}, {"lbranch", sbranch, L_16}, -- cgit v1.1