diff mbox

Add MIPS -mxpa command line option.

Message ID 0DA23CC379F5F945ACB41CF394B9827755CB8A@LEMAIL01.le.imgtec.org
State New
Headers show

Commit Message

Andrew Bennett April 23, 2014, 1:54 p.m. UTC
Hi,

This patch adds a GCC MIPS command line option (-mxpa) to enable/disable
support for the eXtended Physical Address (XPA) instructions within
the assembler.

The ChangeLog and patch are shown below.

Many thanks,


Andrew



        * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
        options.
        * config/mips/mips.opt (mxpa): New option.
        * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
        assembler.

Comments

Richard Sandiford April 23, 2014, 2:10 p.m. UTC | #1
Andrew Bennett <Andrew.Bennett@imgtec.com> writes:
>         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
>         options.
>         * config/mips/mips.opt (mxpa): New option.
>         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
>         assembler.

OK, thanks.  If your account doesn't have gcc access yet then please ask
overseers@ to add it.  Remember to add yourself to MAINTAINERS afterwards :-)

Or if you'd prefer not to get access, I can commit it for you.

Thanks,
Richard
diff mbox

Patch

diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index b25865b..91a33ef 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1176,6 +1176,7 @@  struct mips_cpu_info {
 %{mmcu} %{mno-mcu} \
 %{meva} %{mno-eva} \
 %{mvirt} %{mno-virt} \
+%{mxpa} %{mno-xpa} \
 %{msmartmips} %{mno-smartmips} \
 %{mmt} %{mno-mt} \
 %{mfix-rm7000} %{mno-fix-rm7000} \
diff --git a/gcc/config/mips/mips.opt b/gcc/config/mips/mips.opt
index 6ee5398..c992cee 100644
--- a/gcc/config/mips/mips.opt
+++ b/gcc/config/mips/mips.opt
@@ -392,6 +392,10 @@  mvirt
 Target Report Var(TARGET_VIRT)
 Use Virtualization Application Specific instructions
 
+mxpa
+Target Report Var(TARGET_XPA)
+Use eXtended Physical Address (XPA) instructions
+
 mvr4130-align
 Target Report Mask(VR4130_ALIGN)
 Perform VR4130-specific alignment optimizations
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index ff43f26..22a66e8 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -781,6 +781,7 @@  Objective-C and Objective-C++ Dialects}.
 -mmcu -mmno-mcu @gol
 -meva -mno-eva @gol
 -mvirt -mno-virt @gol
+-mxpa -mno-xpa @gol
 -mmicromips -mno-micromips @gol
 -mfpu=@var{fpu-type} @gol
 -msmartmips  -mno-smartmips @gol
@@ -17494,6 +17495,12 @@  Use (do not use) the MIPS Enhanced Virtual Addressing instructions.
 @opindex mno-virt
 Use (do not use) the MIPS Virtualization Application Specific instructions.
 
+@item -mxpa
+@itemx -mno-xpa
+@opindex mxpa
+@opindex mno-xpa
+Use (do not use) the MIPS eXtended Physical Address (XPA) instructions.
+
 @item -mlong64
 @opindex mlong64
 Force @code{long} types to be 64 bits wide.  See @option{-mlong32} for