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

2021-08-05 Thread Xiongwei Song
On Thu, Aug 5, 2021 at 6:09 PM Christophe Leroy wrote: > > > > Le 26/07/2021 à 16:30, 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: [RFC PATCH 3/4] powerpc: Optimize register usage for dear register

2021-08-05 Thread Christophe Leroy
Le 26/07/2021 à 16:30, 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. Same comment here as for p

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

2021-07-26 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 ++