aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/disassemble.h
diff options
context:
space:
mode:
authorBharat Bhushan <r65777@freescale.com>2013-07-04 12:27:45 +0530
committerAlexander Graf <agraf@suse.de>2013-10-17 14:49:39 +0200
commitb12c784123ff805c066449ca580f15a903c24994 (patch)
tree9fe3eadbff1e5acae7ad3c9b05c0fd349af1439c /arch/powerpc/include/asm/disassemble.h
parentpowerpc: export debug registers save function for KVM (diff)
downloadlinux-dev-b12c784123ff805c066449ca580f15a903c24994.tar.xz
linux-dev-b12c784123ff805c066449ca580f15a903c24994.zip
KVM: PPC: E500: exit to user space on "ehpriv 1" instruction
"ehpriv 1" instruction is used for setting software breakpoints by user space. This patch adds support to exit to user space with "run->debug" have relevant information. As this is the first point we are using run->debug, also defined the run->debug structure. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
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__ */