blob: ff2c8fe3e26257e2f365082ef6dadde815618a43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef _ASM_POWERPC_INST_H
#define _ASM_POWERPC_INST_H
/*
* Instruction data type for POWER
*/
#define ppc_inst(x) (x)
static inline u32 ppc_inst_val(u32 x)
{
return x;
}
static inline int ppc_inst_primary_opcode(u32 x)
{
return ppc_inst_val(x) >> 26;
}
static inline u32 ppc_inst_swab(u32 x)
{
return ppc_inst(swab32(ppc_inst_val(x)));
}
#endif /* _ASM_POWERPC_INST_H */
|