xref: /kernel/linux/linux-5.10/arch/powerpc/xmon/dis-asm.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/powerpc/xmon/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci#ifndef _POWERPC_XMON_DIS_ASM_H
38c2ecf20Sopenharmony_ci#define _POWERPC_XMON_DIS_ASM_H
48c2ecf20Sopenharmony_ci/*
58c2ecf20Sopenharmony_ci * Copyright (C) 2006 Michael Ellerman, IBM Corporation.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciextern void print_address (unsigned long memaddr);
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifdef CONFIG_XMON_DISASSEMBLY
118c2ecf20Sopenharmony_ciextern int print_insn_powerpc(unsigned long insn, unsigned long memaddr);
128c2ecf20Sopenharmony_ciextern int print_insn_spu(unsigned long insn, unsigned long memaddr);
138c2ecf20Sopenharmony_ci#else
148c2ecf20Sopenharmony_cistatic inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
158c2ecf20Sopenharmony_ci{
168c2ecf20Sopenharmony_ci	printf("%.8lx", insn);
178c2ecf20Sopenharmony_ci	return 0;
188c2ecf20Sopenharmony_ci}
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cistatic inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
218c2ecf20Sopenharmony_ci{
228c2ecf20Sopenharmony_ci	printf("%.8lx", insn);
238c2ecf20Sopenharmony_ci	return 0;
248c2ecf20Sopenharmony_ci}
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* _POWERPC_XMON_DIS_ASM_H */
28

Indexes created Thu Nov 07 10:32:03 CST 2024