MIPS: CPS: Fix r1 .set mt assembler warning
PATCH 1/1 MIPS: CPS: Fix r1 .set mt assembler warning
From: James Hogan <[email protected]>
MIPS CPS has a build warning on kernels configured for MIPS32R1 or MIPS64R1, due to the use of .set mt without a prior .set mips{32,64}r2:
arch/mips/kernel/cps-vec.S Assembler messages:arch/mips/kernel/cps-vec.S:238: Warning: the `mt' extension requires MIPS32 revision 2 or greater
Add .set MIPS_ISA_LEVEL_RAW before .set mt to silence the warning.
Fixes 245a7868d2f2 ("MIPS: smp-cps: rework core/VPE initialisation")
Signed-off-by James Hogan <[email protected]>
Cc Ralf Baechle <[email protected]>
Cc Paul Burton <[email protected]>
--- arch/mips/kernel/cps-vec.S | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/kernel/cps-vec.S +2 -0
@@ -235,6 +235,7 @@ LEAF(mips_cps_core_init) has_mt t0, 3f .set push + .set MIPS_ISA_LEVEL_RAW .set mt /* Only allow 1 TC per VPE to execute... */
@@ -388,6 +389,7 @@ LEAF(mips_cps_boot_vpes) #elif defined(CONFIG_MIPS_MT) .set push + .set MIPS_ISA_LEVEL_RAW .set mt /* If the core doesn't support MT then return */
Signature · 1 line
2.14.1