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:
Jordan Niethe
2020-05-06 13:40:27 +10:00
committed by Michael Ellerman
parent 7534625128
commit 777e26f0ed
11 changed files with 190 additions and 179 deletions

View File

@@ -8,4 +8,9 @@
#define ppc_inst(x) (x)
static inline u32 ppc_inst_val(u32 x)
{
return x;
}
#endif /* _ASM_POWERPC_INST_H */