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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/disassemble.h b/arch/powerpc/include/asm/disassemble.h
index 4852e849128b..c0a55050f70f 100644
--- a/arch/powerpc/include/asm/disassemble.h
+++ b/arch/powerpc/include/asm/disassemble.h
@@ -87,6 +87,11 @@ static inline unsigned int get_oc(u32 inst)
return (inst >> 11) & 0x7fff;
}
+static inline unsigned int get_tx_or_sx(u32 inst)
+{
+ return (inst) & 0x1;
+}
+
#define IS_XFORM(inst) (get_op(inst) == 31)
#define IS_DSFORM(inst) (get_op(inst) >= 56)