12874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2e0426047SMichael Ellerman #ifndef _POWERPC_XMON_DIS_ASM_H 3e0426047SMichael Ellerman #define _POWERPC_XMON_DIS_ASM_H 4e0426047SMichael Ellerman /* 5e0426047SMichael Ellerman * Copyright (C) 2006 Michael Ellerman, IBM Corporation. 6e0426047SMichael Ellerman */ 7e0426047SMichael Ellerman 8e0426047SMichael Ellerman extern void print_address (unsigned long memaddr); 9e0426047SMichael Ellerman 10e0426047SMichael Ellerman #ifdef CONFIG_XMON_DISASSEMBLY 11e0426047SMichael Ellerman extern int print_insn_powerpc(unsigned long insn, unsigned long memaddr); 12e0426047SMichael Ellerman extern int print_insn_spu(unsigned long insn, unsigned long memaddr); 13e0426047SMichael Ellerman #else print_insn_powerpc(unsigned long insn,unsigned long memaddr)14e0426047SMichael Ellermanstatic inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr) 15e0426047SMichael Ellerman { 16493a55f1SSukadev Bhattiprolu printf("%.8lx", insn); 17e0426047SMichael Ellerman return 0; 18e0426047SMichael Ellerman } 19e0426047SMichael Ellerman print_insn_spu(unsigned long insn,unsigned long memaddr)20e0426047SMichael Ellermanstatic inline int print_insn_spu(unsigned long insn, unsigned long memaddr) 21e0426047SMichael Ellerman { 22493a55f1SSukadev Bhattiprolu printf("%.8lx", insn); 23e0426047SMichael Ellerman return 0; 24e0426047SMichael Ellerman } 25e0426047SMichael Ellerman #endif 26e0426047SMichael Ellerman 27e0426047SMichael Ellerman #endif /* _POWERPC_XMON_DIS_ASM_H */ 28