aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/processor.h
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2012-07-23 11:20:28 -0400
committerAvi Kivity <avi@redhat.com>2012-07-26 07:04:29 -0400
commit9b7fb990e080f3a7c5dff9a829d11247e629b98f (patch)
tree666b9ba14865381bdd5504c3fbaa53f531dce76b /arch/s390/include/asm/processor.h
parent23d43cf998275bc97437931c0cdee1df2c1aa3ca (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.h1
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);
138extern unsigned long thread_saved_pc(struct task_struct *t); 138extern unsigned long thread_saved_pc(struct task_struct *t);
139 139
140extern void show_code(struct pt_regs *regs); 140extern void show_code(struct pt_regs *regs);
141extern int insn_to_mnemonic(unsigned char *instruction, char buf[8]);
141 142
142unsigned long get_wchan(struct task_struct *p); 143unsigned 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 *) \