On Sat, May 16, 2020 at 9:08 PM Michael Ellerman <m...@ellerman.id.au> wrote: > > Jordan Niethe <jniet...@gmail.com> writes: > > mpe, as suggested by Christophe could you please add this. > > I did that and ... > > > diff --git a/arch/powerpc/include/asm/inst.h > > b/arch/powerpc/include/asm/inst.h > > --- a/arch/powerpc/include/asm/inst.h > > +++ b/arch/powerpc/include/asm/inst.h > > @@ -2,6 +2,8 @@ > > #ifndef _ASM_INST_H > > #define _ASM_INST_H > > > > +#include <asm/disassemble.h> > > .. this eventually breaks the build in some driver, because get_ra() is > redefined. > > So I've backed out this change for now. Thanks, that is fine with me. > > If we want to use the macros in disassemble.h we'll need to namespace > them better, eg. make them ppc_get_ra() and so on. > > cheers > > > /* > > * Instruction data type for POWER > > */ > > @@ -15,7 +17,7 @@ static inline u32 ppc_inst_val(u32 x) > > > > static inline int ppc_inst_primary_opcode(u32 x) > > { > > - return ppc_inst_val(x) >> 26; > > + return get_op(ppc_inst_val(x)); > > } > > > > #endif /* _ASM_INST_H */ > > -- > > 2.17.1
- [PATCH v8 01/30] powerpc/xmon: Remove store_inst() for pa... Jordan Niethe
- [PATCH v8 02/30] powerpc/xmon: Move breakpoint instructio... Jordan Niethe
- [PATCH v8 03/30] powerpc/xmon: Move breakpoints to text s... Jordan Niethe
- [PATCH v8 04/30] powerpc/xmon: Use bitwise calculations i... Jordan Niethe
- [PATCH v8 05/30] powerpc: Change calling convention for c... Jordan Niethe
- [PATCH v8 06/30] powerpc: Use a macro for creating instru... Jordan Niethe
- [PATCH v8 07/30] powerpc: Use an accessor for instruction... Jordan Niethe
- [PATCH v8 08/30] powerpc: Use a function for getting the ... Jordan Niethe
- Re: [PATCH v8 08/30] powerpc: Use a function for get... Jordan Niethe
- Re: [PATCH v8 08/30] powerpc: Use a function for... Michael Ellerman
- Re: [PATCH v8 08/30] powerpc: Use a function... Jordan Niethe
- [PATCH v8 09/30] powerpc: Use a function for byte swappin... Jordan Niethe
- [PATCH v8 10/30] powerpc: Introduce functions for instruc... Jordan Niethe
- [PATCH v8 11/30] powerpc: Use a datatype for instructions Jordan Niethe
- Re: [PATCH v8 11/30] powerpc: Use a datatype for ins... Jordan Niethe
- Re: [PATCH v8 11/30] powerpc: Use a datatype for... Christophe Leroy
- Re: [PATCH v8 11/30] powerpc: Use a datatype... Jordan Niethe
- Re: [PATCH v8 11/30] powerpc: Use a datatype for ins... Jordan Niethe
- Re: [PATCH v8 11/30] powerpc: Use a datatype for ins... Jordan Niethe
- [PATCH v8 12/30] powerpc: Use a function for reading inst... Jordan Niethe
- Re: [PATCH v8 12/30] powerpc: Use a function for rea... Christophe Leroy