/* SPDX-License-Identifier: GPL-2.0 */1/*2* Disassemble s390 instructions.3*4* Copyright IBM Corp. 20075* Author(s): Martin Schwidefsky ([email protected]),6*/78#ifndef __ASM_S390_DIS_H__9#define __ASM_S390_DIS_H__1011#include <asm/dis-defs.h>1213static inline int insn_length(unsigned char code)14{15return ((((int) code + 64) >> 7) + 1) << 1;16}1718struct pt_regs;1920void show_code(struct pt_regs *regs);21void print_fn_code(unsigned char *code, unsigned long len);22struct s390_insn *find_insn(unsigned char *code);2324static inline int is_known_insn(unsigned char *code)25{26return !!find_insn(code);27}2829#endif /* __ASM_S390_DIS_H__ */303132