[PATCH v3] powerpc: Unify opcode definitions and support

Hollis Blanchard hollis at penguinppc.org
Thu Jan 15 06:51:42 EST 2009


On Tue, Jan 13, 2009 at 4:14 PM, Kumar Gala <galak at kernel.crashing.org> wrote:
> Create a new header that becomes a single location for defining PowerPC
> opcodes used by code that is either generationg instructions
> at runtime (fixups, debug, etc.), emulating instructions, or just
> compiling instructions old assemblers don't know about.
>
> We currently don't handle the floating point emulation or alignment decode
> as both are better handled by the specific decode support they already
> have.
>
> Added support for the new dcbzl, dcbal, msgsnd, tlbilx, & wait instructions
> since older assemblers don't know about them.
>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
> * Added PPC_ prefixes to everything to ensure namespace
> * removed defines from traps.c
>
>  arch/powerpc/include/asm/code-patching.h |    4 +-
>  arch/powerpc/include/asm/ppc-opcode.h    |   68 ++++++++++++++++++++++++++++++
>  arch/powerpc/include/asm/ppc_asm.h       |    6 +--
>  arch/powerpc/kernel/crash_dump.c         |    2 +-
>  arch/powerpc/kernel/entry_32.S           |    8 ++--
>  arch/powerpc/kernel/ftrace.c             |    8 ++--
>  arch/powerpc/kernel/head_booke.h         |    2 +-
>  arch/powerpc/kernel/module_64.c          |    2 +-
>  arch/powerpc/kernel/traps.c              |   58 ++++++++-----------------
>  arch/powerpc/lib/feature-fixups.c        |    4 +-
>  10 files changed, 101 insertions(+), 61 deletions(-)
>  create mode 100644 arch/powerpc/include/asm/ppc-opcode.h

Shouldn't arch/powerpc/include/asm/disassemble.h be integrated with this?

-Hollis



More information about the Linuxppc-dev mailing list