[PATCH v2] powerpc: Add ppc_inst_next()

Michael Ellerman patch-notifications at ellerman.id.au
Tue Jun 9 15:29:18 AEST 2020


On Fri, 22 May 2020 23:33:18 +1000, 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, we need to advance
> by either 4 or 8 bytes depending on the actual instruction. We also
> can't do pointer arithmetic using struct ppc_inst, because it is
> always 8 bytes in size on 64-bit, even though we might only need to
> advance by 4 bytes.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc: Add ppc_inst_next()
      https://git.kernel.org/powerpc/c/c5ff46d69c410f7fac173e4fde3eea484b4b4eda

cheers


More information about the Linuxppc-dev mailing list