powerpc/xmon: Use a function for reading instructions
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:38 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:38 +0000 (00:10 +1000)
commit6c7a4f0a9f66fc7fdc6e208559e5d562f53e0991
tree29e5517780650246640780ca4c15ab6d2f035bfa
parent622cf6f436a12338bbcfbb3474629755547fd112
powerpc/xmon: Use a function for reading instructions

Currently in xmon, mread() is used for reading instructions. In
preparation for prefixed instructions, create and use a new function,
mread_instr(), especially for reading instructions.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-19-jniethe5@gmail.com
arch/powerpc/xmon/xmon.c