android_kernel_oneplus_msm8998/arch/mips/dec
Maciej W. Rozycki fbba23bb40 MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression
[ Upstream commit 68fe55680d0f3342969f49412fceabb90bdfadba ]

Fix a commit 3021773c7c3e ("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: 3021773c7c3e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-10 07:41:40 -08:00
..
prom
ecc-berr.c
int-handler.S MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression 2018-11-10 07:41:40 -08:00
ioasic-irq.c
kn01-berr.c
kn02-irq.c
kn02xa-berr.c
Makefile arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
Platform
platform.c arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
reset.c
setup.c MIPS: DEC: Do not set up the FPU interrupt if no FPU 2015-04-08 01:10:46 +02:00
tc.c
time.c
wbflush.c