WSL2-Linux-Kernel/arch/mips/dec
Maciej W. Rozycki 68fe55680d MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression
Fix a commit 3021773c7c ("MIPS: DEC: Avoid la pseudo-instruction in
delay slots") regression and remove assembly errors:

arch/mips/dec/int-handler.S: Assembler messages:
arch/mips/dec/int-handler.S:162: Error: Macro used $at after ".set noat"
arch/mips/dec/int-handler.S:163: Error: Macro used $at after ".set noat"
arch/mips/dec/int-handler.S:229: Error: Macro used $at after ".set noat"
arch/mips/dec/int-handler.S:230: Error: Macro used $at after ".set noat"

triggering with with the CPU_DADDI_WORKAROUNDS option set and the DADDIU
instruction.  This is because with that option in place the instruction
becomes a macro, which expands to an LI/DADDU (or actually ADDIU/DADDU)
sequence that uses $at as a temporary register.

With CPU_DADDI_WORKAROUNDS we only support `-msym32' compilation though,
and this is already enforced in arch/mips/Makefile, so choose the 32-bit
expansion variant for the supported configurations and then replace the
64-bit variant with #error just in case.

Fixes: 3021773c7c ("MIPS: DEC: Avoid la pseudo-instruction in delay slots")
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org # 4.8+
Patchwork: https://patchwork.linux-mips.org/patch/16893/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-08-07 16:31:03 +02:00
..
prom format-security: move static strings to const 2017-05-08 17:15:14 -07:00
Makefile arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
Platform MIPS: Repair Kbuild make clean breakage. 2010-10-19 18:32:39 +01:00
ecc-berr.c MIPS: DEC: Bus error handler <asm/cpu-type.h> fixes 2014-05-13 00:29:35 +02:00
int-handler.S MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression 2017-08-07 16:31:03 +02:00
ioasic-irq.c MIPS: DECstation I/O ASIC DMA interrupt classes 2013-10-29 21:24:42 +01:00
kn01-berr.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
kn02-irq.c MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
kn02xa-berr.c MIPS: DEC: Bus error handler <asm/cpu-type.h> fixes 2014-05-13 00:29:35 +02:00
platform.c arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
reset.c [MIPS] Transform old-style macros to newer "__noreturn" 2007-07-10 17:32:56 +01:00
setup.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
tc.c [TC] TURBOchannel support for the DECstation 2007-02-09 16:23:16 +00:00
time.c MIPS: DECstation HRT initialization rearrangement 2013-09-13 11:56:13 +02:00
wbflush.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00