2013-06-13 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
authorChao-ying Fu <fu@mips.com>
Thu, 13 Jun 2013 20:58:44 +0000 (20:58 +0000)
committerChao-ying Fu <fu@mips.com>
Thu, 13 Jun 2013 20:58:44 +0000 (20:58 +0000)
* config/tc-mips.c (ISA_SUPPORTS_VIRT_ASE): Support micromips.
(ISA_SUPPORTS_VIRT64_ASE): Support 64-bit micromips.

gas/ChangeLog
gas/config/tc-mips.c

index 21133563c6025ac7955e36b473aa1341aa15829e..4ce92cebe5991d7706c7f5d2fd89a31542ddb7c1 100644 (file)
@@ -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
index 45751dcac740b96421e616e8c3721b7436ce8a4b..468e40f5b2af722c6c68b2d0e7fafeafbfb4c1de 100644 (file)
@@ -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;