diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2012-07-23 17:20:28 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-07-26 14:04:29 +0300 |
commit | 9b7fb990e080f3a7c5dff9a829d11247e629b98f (patch) | |
tree | 666b9ba14865381bdd5504c3fbaa53f531dce76b /arch/s390/include/asm | |
parent | 23d43cf998275bc97437931c0cdee1df2c1aa3ca (diff) | |
download | blackbird-obmc-linux-9b7fb990e080f3a7c5dff9a829d11247e629b98f.tar.gz blackbird-obmc-linux-9b7fb990e080f3a7c5dff9a829d11247e629b98f.zip |
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')
-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); extern unsigned long thread_saved_pc(struct task_struct *t); extern void show_code(struct pt_regs *regs); +extern int insn_to_mnemonic(unsigned char *instruction, char buf[8]); unsigned long get_wchan(struct task_struct *p); #define task_pt_regs(tsk) ((struct pt_regs *) \ |