ppc: Create disassemble.h to extract instruction fields
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 5 Nov 2008 15:36:15 +0000 (09:36 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:52:21 +0000 (16:52 +0200)
commitc381a04313e7c0fb04246b1ff711e0b5726de6c0
treed487c0a99510854eb1763329cb4b25182a2ef8c9
parent9dd921cfea734409a931ccc6eafd7f09850311e9
ppc: Create disassemble.h to extract instruction fields

This is used in a couple places in KVM, but isn't KVM-specific.

However, this patch doesn't modify other in-kernel emulation code:
- xmon uses a direct copy of ppc_opc.c from binutils
- emulate_instruction() doesn't need it because it can use a series
  of mask tests.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/disassemble.h [new file with mode: 0644]
arch/powerpc/kvm/emulate.c