Re: [PATCH] powerpc: Add ppc_inst_next()

2020-05-20 Thread Christophe Leroy
Le 20/05/2020 à 14:21, Jordan Niethe a écrit : On Wed, May 20, 2020 at 9:44 PM Michael Ellerman wrote: In a few places we want to calculate the address of the next instruction. Previously that was simple, we just added 4 bytes, or if using a u32 * we incremented that pointer by 1. But pref

Re: [PATCH] powerpc: Add ppc_inst_next()

2020-05-20 Thread Jordan Niethe
On Wed, May 20, 2020 at 9:44 PM Michael Ellerman wrote: > > In a few places we want to calculate the address of the next > instruction. Previously that was simple, we just added 4 bytes, or if > using a u32 * we incremented that pointer by 1. > > But prefixed instructions make it more complicated,

[PATCH] powerpc: Add ppc_inst_next()

2020-05-20 Thread Michael Ellerman
In a few places we want to calculate the address of the next instruction. Previously that was simple, we just added 4 bytes, or if using a u32 * we incremented that pointer by 1. But prefixed instructions make it more complicated, we need to advance by either 4 or 8 bytes depending on the actual i