MIPS: XPA: Standardise readx/writex accessors
authorJames Hogan <jhogan@kernel.org>
Wed, 22 Nov 2017 11:30:32 +0000 (11:30 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 22 Jan 2018 20:52:10 +0000 (20:52 +0000)
commitabbd52fd6bb15211b578598d8f31d5bc6084f02e
treef35a0346bc9feb280d30732d852794451d07a638
parent3478ba9969dae8e1537ad9b74d7bc01d9087d0cd
MIPS: XPA: Standardise readx/writex accessors

Now that we are using assembler macros to implement XPA instructions on
toolchains which don't support them, pass Cop0 register names to the
__{readx,writex}_32bit_c0_register macros in $n format rather than
register numbers. Also pass a register select which may be useful in
future (for example for MemoryMapID field of WatchHi registers on
I6500).

This is to make them consistent with the normal Cop0 register access
macros which they were originally based on.

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/17777/
arch/mips/include/asm/mipsregs.h