Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 #ifndef _POWERPC_XMON_DIS_ASM_H
0003 #define _POWERPC_XMON_DIS_ASM_H
0004 /*
0005  * Copyright (C) 2006 Michael Ellerman, IBM Corporation.
0006  */
0007 
0008 extern void print_address (unsigned long memaddr);
0009 
0010 #ifdef CONFIG_XMON_DISASSEMBLY
0011 extern int print_insn_powerpc(unsigned long insn, unsigned long memaddr);
0012 extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
0013 #else
0014 static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
0015 {
0016     printf("%.8lx", insn);
0017     return 0;
0018 }
0019 
0020 static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
0021 {
0022     printf("%.8lx", insn);
0023     return 0;
0024 }
0025 #endif
0026 
0027 #endif /* _POWERPC_XMON_DIS_ASM_H */