162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci#ifndef _POWERPC_XMON_DIS_ASM_H 362306a36Sopenharmony_ci#define _POWERPC_XMON_DIS_ASM_H 462306a36Sopenharmony_ci/* 562306a36Sopenharmony_ci * Copyright (C) 2006 Michael Ellerman, IBM Corporation. 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ciextern void print_address (unsigned long memaddr); 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#ifdef CONFIG_XMON_DISASSEMBLY 1162306a36Sopenharmony_ciextern int print_insn_powerpc(unsigned long insn, unsigned long memaddr); 1262306a36Sopenharmony_ciextern int print_insn_spu(unsigned long insn, unsigned long memaddr); 1362306a36Sopenharmony_ci#else 1462306a36Sopenharmony_cistatic inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr) 1562306a36Sopenharmony_ci{ 1662306a36Sopenharmony_ci printf("%.8lx", insn); 1762306a36Sopenharmony_ci return 0; 1862306a36Sopenharmony_ci} 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_cistatic inline int print_insn_spu(unsigned long insn, unsigned long memaddr) 2162306a36Sopenharmony_ci{ 2262306a36Sopenharmony_ci printf("%.8lx", insn); 2362306a36Sopenharmony_ci return 0; 2462306a36Sopenharmony_ci} 2562306a36Sopenharmony_ci#endif 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci#endif /* _POWERPC_XMON_DIS_ASM_H */ 28