aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-09-09 17:18:42 +0000
committerNick Clifton <nickc@redhat.com>1997-09-09 17:18:42 +0000
commit1ffec081989b3cc37680d85f60d4a0fc5e2423ca (patch)
tree5b386b2ad1e79747b38b9f1f98e8d84ea7653506 /gas/config
parent22a25680ba669609e3c6240a9868d51f5da543f6 (diff)
downloadgdb-1ffec081989b3cc37680d85f60d4a0fc5e2423ca.zip
gdb-1ffec081989b3cc37680d85f60d4a0fc5e2423ca.tar.gz
gdb-1ffec081989b3cc37680d85f60d4a0fc5e2423ca.tar.bz2
Add new pseudo ops: .v850, .v850e and .v850eq to specify the target processor.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-v850.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index 524e735..41d9949 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -206,6 +206,13 @@ v850_offset (int ignore)
demand_empty_rest_of_line ();
}
+void
+set_machine (int number)
+{
+ machine = number;
+ bfd_set_arch_mach (stdoutput, TARGET_ARCH, machine);
+}
+
/* The target specific pseudo-ops which we support. */
const pseudo_typeS md_pseudo_table[] =
{
@@ -221,6 +228,13 @@ const pseudo_typeS md_pseudo_table[] =
{"offset", v850_offset, 0},
{"section", v850_section, 0},
{"word", cons, 4},
+ {"v850", set_machine, 0},
+/* start-sanitize-v850e */
+ {"v850e", set_machine, bfd_mach_v850e},
+/* end-sanitize-v850e */
+/* start-sanitize-v850eq */
+ {"v850eq", set_machine, bfd_mach_v850eq},
+/* end-sanitize-v850eq */
{ NULL, NULL, 0}
};