Re: [PATCH v2 1/4] powerpc: Optimize register usage for esr register

2021-08-10 Thread Xiongwei Song
On Sat, Aug 7, 2021 at 2:57 PM Christophe Leroy wrote: > > > > Le 07/08/2021 à 03:02, sxwj...@me.com a écrit : > > From: Xiongwei Song > > > > Create an anonymous union for dsisr and esr regsiters, we can reference > > esr to get the exception detail when CONFIG_4xx=y or CONFIG_BOOKE=y. > > Other

Re: [PATCH v2 1/4] powerpc: Optimize register usage for esr register

2021-08-06 Thread Christophe Leroy
Le 07/08/2021 à 03:02, sxwj...@me.com a écrit : From: Xiongwei Song Create an anonymous union for dsisr and esr regsiters, we can reference esr to get the exception detail when CONFIG_4xx=y or CONFIG_BOOKE=y. Otherwise, reference dsisr. This makes code more clear. Signed-off-by: Xiongwei So

[PATCH v2 1/4] powerpc: Optimize register usage for esr register

2021-08-06 Thread sxwjean
From: Xiongwei Song Create an anonymous union for dsisr and esr regsiters, we can reference esr to get the exception detail when CONFIG_4xx=y or CONFIG_BOOKE=y. Otherwise, reference dsisr. This makes code more clear. Signed-off-by: Xiongwei Song --- arch/powerpc/include/asm/ptrace.h |