powerpc: Use an accessor for instructions
In preparation for introducing a more complicated instruction type to accommodate prefixed instructions use an accessor for getting an instruction as a u32. Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200506034050.24806-8-jniethe5@gmail.com
This commit is contained in:

committed by
Michael Ellerman

parent
7534625128
commit
777e26f0ed
@@ -2872,9 +2872,9 @@ generic_inst_dump(unsigned long adr, long count, int praddr,
|
||||
dotted = 0;
|
||||
last_inst = inst;
|
||||
if (praddr)
|
||||
printf(REG" %.8x", adr, inst);
|
||||
printf(REG" %.8x", adr, ppc_inst_val(inst));
|
||||
printf("\t");
|
||||
dump_func(inst, adr);
|
||||
dump_func(ppc_inst_val(inst), adr);
|
||||
printf("\n");
|
||||
}
|
||||
return adr - first_adr;
|
||||
|
Reference in New Issue
Block a user