dis-asm.h 895 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _POWERPC_XMON_DIS_ASM_H
  2. #define _POWERPC_XMON_DIS_ASM_H
  3. /*
  4. * Copyright (C) 2006 Michael Ellerman, IBM Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. extern void print_address (unsigned long memaddr);
  12. #ifdef CONFIG_XMON_DISASSEMBLY
  13. extern int print_insn_powerpc(unsigned long insn, unsigned long memaddr);
  14. extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
  15. #else
  16. static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
  17. {
  18. printf("%.8x", insn);
  19. return 0;
  20. }
  21. static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
  22. {
  23. printf("%.8x", insn);
  24. return 0;
  25. }
  26. #endif
  27. #endif /* _POWERPC_XMON_DIS_ASM_H */