powerpc: Introduce functions for instruction equality
In preparation for an instruction data type that can not be directly used with the '==' operator use functions for checking equality. Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Balamuruhan S <bala24@linux.ibm.com> Link: https://lore.kernel.org/r/20200506034050.24806-11-jniethe5@gmail.com
This commit is contained in:

committed by
Michael Ellerman

parent
aabd2233b6
commit
217862d9b9
@@ -23,4 +23,9 @@ static inline u32 ppc_inst_swab(u32 x)
|
||||
return ppc_inst(swab32(ppc_inst_val(x)));
|
||||
}
|
||||
|
||||
static inline bool ppc_inst_equal(u32 x, u32 y)
|
||||
{
|
||||
return x == y;
|
||||
}
|
||||
|
||||
#endif /* _ASM_POWERPC_INST_H */
|
||||
|
Reference in New Issue
Block a user