aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2013-06-13 20:58:44 +0000
committerChao-ying Fu <fu@mips.com>2013-06-13 20:58:44 +0000
commitf122319e0af44e6caa2c9163b45746aa4efb11e6 (patch)
tree93f785877aaa915e77d71d0159da51868729aaed /gas
parent2f47f5fc1338185064d87c4ab54773a9f4cfe796 (diff)
downloadgdb-f122319e0af44e6caa2c9163b45746aa4efb11e6.zip
gdb-f122319e0af44e6caa2c9163b45746aa4efb11e6.tar.gz
gdb-f122319e0af44e6caa2c9163b45746aa4efb11e6.tar.bz2
2013-06-13 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
* config/tc-mips.c (ISA_SUPPORTS_VIRT_ASE): Support micromips. (ISA_SUPPORTS_VIRT64_ASE): Support 64-bit micromips.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2113356..4ce92ce 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-13 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
+
+ * config/tc-mips.c (ISA_SUPPORTS_VIRT_ASE): Support micromips.
+ (ISA_SUPPORTS_VIRT64_ASE): Support 64-bit micromips.
+
2013-06-13 Nick Clifton <nickc@redhat.com>
PR gas/15602
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 45751dc..468e40f 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -381,9 +381,12 @@ static int file_ase_mt;
static int file_ase_virt;
#define ISA_SUPPORTS_VIRT_ASE (mips_opts.isa == ISA_MIPS32R2 \
- || mips_opts.isa == ISA_MIPS64R2)
+ || mips_opts.isa == ISA_MIPS64R2 \
+ || mips_opts.micromips)
-#define ISA_SUPPORTS_VIRT64_ASE (mips_opts.isa == ISA_MIPS64R2)
+#define ISA_SUPPORTS_VIRT64_ASE (mips_opts.isa == ISA_MIPS64R2 \
+ || (mips_opts.micromips \
+ && ISA_HAS_64BIT_REGS (mips_opts.isa)))
/* The argument of the -march= flag. The architecture we are assembling. */
static int file_mips_arch = CPU_UNKNOWN;