Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / powerpc / xmon / dis-asm.h
blobc4c982d6402e73ff62d4d64c33c6de47707b034e
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #ifndef _POWERPC_XMON_DIS_ASM_H
3 #define _POWERPC_XMON_DIS_ASM_H
4 /*
5 * Copyright (C) 2006 Michael Ellerman, IBM Corporation.
6 */
8 extern void print_address (unsigned long memaddr);
10 #ifdef CONFIG_XMON_DISASSEMBLY
11 extern int print_insn_powerpc(unsigned long insn, unsigned long memaddr);
12 extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
13 #else
14 static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
16 printf("%.8lx", insn);
17 return 0;
20 static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
22 printf("%.8lx", insn);
23 return 0;
25 #endif
27 #endif /* _POWERPC_XMON_DIS_ASM_H */