dis-asm.h 690 B

123456789101112131415161718192021222324252627
  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. */
  7. extern void print_address (unsigned long memaddr);
  8. #ifdef CONFIG_XMON_DISASSEMBLY
  9. extern int print_insn_powerpc(unsigned long insn, unsigned long memaddr);
  10. extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
  11. #else
  12. static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
  13. {
  14. printf("%.8lx", insn);
  15. return 0;
  16. }
  17. static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
  18. {
  19. printf("%.8lx", insn);
  20. return 0;
  21. }
  22. #endif
  23. #endif /* _POWERPC_XMON_DIS_ASM_H */