MIPS: XPA: Allow use of $0 (zero) to MTHC0
authorJames Hogan <jhogan@kernel.org>
Wed, 22 Nov 2017 11:30:31 +0000 (11:30 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 22 Jan 2018 20:52:02 +0000 (20:52 +0000)
commit3478ba9969dae8e1537ad9b74d7bc01d9087d0cd
tree9b54b67838dcb5c26dbecd48d358beb08079f04d
parent8e4789d288e0155db1929b5672252429e52b36a8
MIPS: XPA: Allow use of $0 (zero) to MTHC0

Tweak __writex_32bit_c0_register() to allow the compiler to use $0 (the
zero register) as an input to the mthc0 instruction.

Signed-off-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17774/
arch/mips/include/asm/mipsregs.h