]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/powerpc/xmon/dis-asm.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
[mirror_ubuntu-eoan-kernel.git] / arch / powerpc / xmon / dis-asm.h
CommitLineData
2874c5fd 1/* SPDX-License-Identifier: GPL-2.0-or-later */
e0426047
ME
2#ifndef _POWERPC_XMON_DIS_ASM_H
3#define _POWERPC_XMON_DIS_ASM_H
4/*
5 * Copyright (C) 2006 Michael Ellerman, IBM Corporation.
e0426047
ME
6 */
7
8extern void print_address (unsigned long memaddr);
9
10#ifdef CONFIG_XMON_DISASSEMBLY
11extern int print_insn_powerpc(unsigned long insn, unsigned long memaddr);
12extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
13#else
14static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
15{
16 printf("%.8x", insn);
17 return 0;
18}
19
20static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
21{
22 printf("%.8x", insn);
23 return 0;
24}
25#endif
26
27#endif /* _POWERPC_XMON_DIS_ASM_H */