Re: [PATCH 0/8] MIPS: Unify register numbering macros for uasm

From: Thomas Bogendoerfer
Date: Tue Feb 20 2024 - 08:50:44 EST


On Fri, Feb 09, 2024 at 06:07:46PM +0000, Jiaxun Yang wrote:
> Hi all,
>
> This is a attempt to unify register numbering macros for uasm,
> in response to review comment [1].
>
> This is a rather large cosmetic change so I decided to send
> it as a sepreate set.
>
> Please review.
> Thanks
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
> ---
> Jiaxun Yang (8):
> MIPS: Unify define of CP0 registers for uasm code
> MIPS: regdefs.h: Guard all defines with __ASSEMBLY__
> MIPS: regdefs.h: Define a set of register numbers
> MIPS: traps: Use GPR number macros
> MIPS: page: Use GPR number macros
> MIPS: tlbex: Use GPR number macros
> MIPS: kvm/entry: Use GPR number macros
> MIPS: pm-cps: Use GPR number macros
>
> arch/mips/include/asm/mipsregs.h | 249 +++++++++++++++++-----
> arch/mips/include/asm/regdef.h | 91 +++++++++
> arch/mips/kernel/pm-cps.c | 134 ++++++------
> arch/mips/kernel/traps.c | 6 +-
> arch/mips/kvm/entry.c | 431 +++++++++++++++++----------------------
> arch/mips/mm/page.c | 202 +++++++++---------
> arch/mips/mm/tlbex.c | 214 +++++++++----------
> 7 files changed, 737 insertions(+), 590 deletions(-)
> ---
> base-commit: 445a555e0623387fa9b94e68e61681717e70200a
> change-id: 20240209-regname-4c14f1147e25

series applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]