MIPS: VZ: Pass GC0 register names in $n format
authorJames Hogan <jhogan@kernel.org>
Wed, 22 Nov 2017 11:30:29 +0000 (11:30 +0000)
committerJames Hogan <jhogan@kernel.org>
Mon, 22 Jan 2018 20:51:43 +0000 (20:51 +0000)
commited21e00777c558dfd3ad2bc0a8f88bf4e204be75
treed98bd4fa63077df8850846829c3e89898931e753
parent00b4eb408aaff21aeb806de24c5ff25b398083a4
MIPS: VZ: Pass GC0 register names in $n format

Now that we are using assembler macros to implement VZ instructions on
toolchains which don't support them, pass VZ guest Cop0 register names
to the __{read,write}_{32bit,ulong,64bit}_gc0_register macros in $n
format rather than register numbers. This is to make them consistent
with the normal root 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/17773/
arch/mips/include/asm/mipsregs.h