summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/disassemble.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/disassemble.h')
-rw-r--r--arch/powerpc/include/asm/disassemble.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/disassemble.h b/arch/powerpc/include/asm/disassemble.h
index 9b198d1b3b2b..856f8deb557a 100644
--- a/arch/powerpc/include/asm/disassemble.h
+++ b/arch/powerpc/include/asm/disassemble.h
@@ -77,4 +77,8 @@ static inline unsigned int get_d(u32 inst)
return inst & 0xffff;
}
+static inline unsigned int get_oc(u32 inst)
+{
+ return (inst >> 11) & 0x7fff;
+}
#endif /* __ASM_PPC_DISASSEMBLE_H__ */