Re: [PATCH v2 3/4] powerpc: Optimize register usage for dear register

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

Re: [PATCH v2 3/4] powerpc: Optimize register usage for dear 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 dar and dear regsiters, we can reference dear to get the effective address when CONFIG_4xx=y or CONFIG_BOOKE=y. Otherwise, reference dar. This makes code more clear. Signed-off-by: Xiongwei Son

[PATCH v2 3/4] powerpc: Optimize register usage for dear register

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