diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2012-07-23 11:20:28 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-07-26 07:04:29 -0400 |
commit | 9b7fb990e080f3a7c5dff9a829d11247e629b98f (patch) | |
tree | 666b9ba14865381bdd5504c3fbaa53f531dce76b /arch/s390/include/asm/processor.h | |
parent | 23d43cf998275bc97437931c0cdee1df2c1aa3ca (diff) |
s390/dis: Instruction decoding interface
Provide a new function, insn_to_mnemonic, by which e.g. kvm can obtain
a human-readable decoding of an instruction's opcode.
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/include/asm/processor.h')
-rw-r--r-- | arch/s390/include/asm/processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index c40fa91e38a8..31feac630544 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h | |||
@@ -138,6 +138,7 @@ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); | |||
138 | extern unsigned long thread_saved_pc(struct task_struct *t); | 138 | extern unsigned long thread_saved_pc(struct task_struct *t); |
139 | 139 | ||
140 | extern void show_code(struct pt_regs *regs); | 140 | extern void show_code(struct pt_regs *regs); |
141 | extern int insn_to_mnemonic(unsigned char *instruction, char buf[8]); | ||
141 | 142 | ||
142 | unsigned long get_wchan(struct task_struct *p); | 143 | unsigned long get_wchan(struct task_struct *p); |
143 | #define task_pt_regs(tsk) ((struct pt_regs *) \ | 144 | #define task_pt_regs(tsk) ((struct pt_regs *) \ |