aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
authorGavin Romig-Koch <gavin@redhat.com>1997-10-29 21:40:09 +0000
committerGavin Romig-Koch <gavin@redhat.com>1997-10-29 21:40:09 +0000
commit4ebda395f1584d6770f2022a81d351e27ea0c8d4 (patch)
treeb39fdbf013f5760ed5deec5bc141b82a6afc3643 /gas/config/tc-mips.c
parent6e2ac3c72d3853cfb4a9b5ad80d0589da3994c98 (diff)
downloadgdb-4ebda395f1584d6770f2022a81d351e27ea0c8d4.zip
gdb-4ebda395f1584d6770f2022a81d351e27ea0c8d4.tar.gz
gdb-4ebda395f1584d6770f2022a81d351e27ea0c8d4.tar.bz2
* config/tc-mips.c (hilo_interlocks): True for tx49.
(md_begin): Add mips64tx49. (md_parse_option): Add 4900 cpu. * gas/mips/mips.exp: Add tx49 configury.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 6eecede..314d568 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -220,7 +220,11 @@ static int mips_3900 = -1;
/* Whether the processor uses hardware interlocks to protect
reads from the HI and LO registers, and thus does not
require nops to be inserted. */
-#define hilo_interlocks (mips_4010 || mips_cpu == 4300 || mips_3900)
+#define hilo_interlocks (mips_4010 || mips_cpu == 4300 || mips_3900 \
+ /* start-sanitize-tx49 */ \
+ || mips_cpu == 4900 \
+ /* end-sanitize-tx49 */ \
+ )
/* Whether the processor uses hardware interlocks to protect reads
from the GPRs, and thus does not require nops to be inserted. */
@@ -877,6 +881,14 @@ md_begin ()
if (mips_4010 == -1)
mips_4010 = 1;
}
+ /* start-sanitize-tx49 */
+ else if (strcmp (cpu, "mips64tx49") == 0)
+ {
+ mips_opts.isa = 3;
+ if (mips_cpu == -1)
+ mips_cpu = 4900;
+ }
+ /* end-sanitize-tx49 */
else if (strcmp (cpu, "r5000") == 0
|| strcmp (cpu, "mips64vr5000") == 0)
{
@@ -8542,6 +8554,10 @@ md_parse_option (c, arg)
if (mips_4650 < 0)
mips_4650 = 1;
}
+ /* start-sanitize-tx49 */
+ else if (strcmp (p, "4900") == 0)
+ mips_cpu = 4900;
+ /* end-sanitize-tx49 */
else if (strcmp (p, "4010") == 0)
{
mips_cpu = 4010;