aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-v850.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-08-25 23:03:24 +0000
committerNick Clifton <nickc@redhat.com>1997-08-25 23:03:24 +0000
commitb688e04e29775981e9e017adf876e2add610d17d (patch)
tree33ddb76eda9390773729686f89cb6fa62d90cf96 /gas/config/tc-v850.c
parent8988d935a335f9f60ec1eccc1caa70cd757e3201 (diff)
downloadgdb-b688e04e29775981e9e017adf876e2add610d17d.zip
gdb-b688e04e29775981e9e017adf876e2add610d17d.tar.gz
gdb-b688e04e29775981e9e017adf876e2add610d17d.tar.bz2
Set machine architecture and type.
Diffstat (limited to 'gas/config/tc-v850.c')
-rw-r--r--gas/config/tc-v850.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index aefb5a6..6662b9f 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -137,6 +137,7 @@ static const struct reg_name pre_defined_registers[] =
{
{ "ep", 30 }, /* ep - element ptr */
{ "gp", 4 }, /* gp - global ptr */
+ { "hp", 2 }, /* hp - handler stack ptr */
{ "lp", 31 }, /* lp - link ptr */
{ "r0", 0 },
{ "r1", 1 },
@@ -800,6 +801,17 @@ md_begin ()
}
op++;
}
+
+ bfd_set_arch_mach (stdoutput, TARGET_ARCH, 0);
+ fprintf (stderr, "set to %d\n", 0 );
+ /* start-sanitize-v850e */
+ bfd_set_arch_mach (stdoutput, TARGET_ARCH, bfd_mach_v850e);
+ fprintf (stderr, "set to %d\n", bfd_mach_v850e);
+ /* end-sanitize-v850e */
+ /* start-sanitize-v850eq */
+ bfd_set_arch_mach (stdoutput, TARGET_ARCH, bfd_mach_v850eq);
+ fprintf (stderr, "set to %d\n", bfd_mach_v850eq);
+ /* end-sanitize-v850eq */
}
static bfd_reloc_code_real_type