diff options
author | Paul Burton <paul.burton@imgtec.com> | 2015-08-05 18:42:40 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-12-22 06:16:32 -0500 |
commit | f3575e230cf8537951ebe3cc19974c5db2ff4f1c (patch) | |
tree | 031bce32f822c102158e970075eec3e157e31fad | |
parent | d6a428fb583738ad685c91a684748cdee7b2a05f (diff) |
MIPS: CPS: drop .set mips64r2 directives
Commit 977e043d5ea1 ("MIPS: kernel: cps-vec: Replace mips32r2 ISA level
with mips64r2") leads to .set mips64r2 directives being present in 32
bit (ie. CONFIG_32BIT=y) kernels. This is incorrect & leads to MIPS64
instructions being emitted by the assembler when expanding
pseudo-instructions. For example the "move" instruction can legitimately
be expanded to a "daddu". This causes problems when the kernel is run on
a MIPS32 CPU, as CONFIG_32BIT kernels of course often are...
Fix this by dropping the .set <ISA> directives entirely now that Kconfig
should be ensuring that kernels including this code are built with a
suitable -march= compiler flag.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: <stable@vger.kernel.org> # 3.16+
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/10869/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/cps-vec.S | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S index 8fd5a276cad2..ac81edd44563 100644 --- a/arch/mips/kernel/cps-vec.S +++ b/arch/mips/kernel/cps-vec.S | |||
@@ -257,7 +257,6 @@ LEAF(mips_cps_core_init) | |||
257 | has_mt t0, 3f | 257 | has_mt t0, 3f |
258 | 258 | ||
259 | .set push | 259 | .set push |
260 | .set mips64r2 | ||
261 | .set mt | 260 | .set mt |
262 | 261 | ||
263 | /* Only allow 1 TC per VPE to execute... */ | 262 | /* Only allow 1 TC per VPE to execute... */ |
@@ -376,7 +375,6 @@ LEAF(mips_cps_boot_vpes) | |||
376 | nop | 375 | nop |
377 | 376 | ||
378 | .set push | 377 | .set push |
379 | .set mips64r2 | ||
380 | .set mt | 378 | .set mt |
381 | 379 | ||
382 | 1: /* Enter VPE configuration state */ | 380 | 1: /* Enter VPE configuration state */ |