diff options
| author | James Hogan <jhogan@kernel.org> | 2017-11-22 06:30:31 -0500 |
|---|---|---|
| committer | James Hogan <jhogan@kernel.org> | 2018-01-22 15:52:02 -0500 |
| commit | 3478ba9969dae8e1537ad9b74d7bc01d9087d0cd (patch) | |
| tree | 9b54b67838dcb5c26dbecd48d358beb08079f04d /arch/mips/include | |
| parent | 8e4789d288e0155db1929b5672252429e52b36a8 (diff) | |
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/
Diffstat (limited to 'arch/mips/include')
| -rw-r--r-- | arch/mips/include/asm/mipsregs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index f336846fb415..b1dedd5935a1 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h | |||
| @@ -1537,10 +1537,10 @@ do { \ | |||
| 1537 | " .set push \n" \ | 1537 | " .set push \n" \ |
| 1538 | " .set mips32r2 \n" \ | 1538 | " .set mips32r2 \n" \ |
| 1539 | _ASM_SET_XPA \ | 1539 | _ASM_SET_XPA \ |
| 1540 | " mthc0 %0, $%1 \n" \ | 1540 | " mthc0 %z0, $%1 \n" \ |
| 1541 | " .set pop \n" \ | 1541 | " .set pop \n" \ |
| 1542 | : \ | 1542 | : \ |
| 1543 | : "r" (value), "i" (register)); \ | 1543 | : "Jr" (value), "i" (register)); \ |
| 1544 | } while (0) | 1544 | } while (0) |
| 1545 | 1545 | ||
| 1546 | #define read_c0_index() __read_32bit_c0_register($0, 0) | 1546 | #define read_c0_index() __read_32bit_c0_register($0, 0) |
