alistair23-linux/arch/powerpc/kvm
Hollis Blanchard 75f74f0dbe KVM: ppc: refactor instruction emulation into generic and core-specific pieces
Cores provide 3 emulation hooks, implemented for example in the new
4xx_emulate.c:
kvmppc_core_emulate_op
kvmppc_core_emulate_mtspr
kvmppc_core_emulate_mfspr

Strictly speaking the last two aren't necessary, but provide for more
informative error reporting ("unknown SPR").

Long term I'd like to have instruction decoding autogenerated from tables of
opcodes, and that way we could aggregate universal, Book E, and core-specific
instructions more easily and without redundant switch statements.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2008-12-31 16:52:21 +02:00
..
44x.c KVM: ppc: Refactor powerpc.c to relocate 440-specific code 2008-12-31 16:52:21 +02:00
44x_emulate.c KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
44x_tlb.c KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
44x_tlb.h KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
booke.c KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
booke.h KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
booke_interrupts.S KVM: powerpc: Map guest userspace with TID=0 mappings 2008-10-15 10:15:16 +02:00
emulate.c KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
Kconfig KVM: ppc: Refactor powerpc.c to relocate 440-specific code 2008-12-31 16:52:21 +02:00
Makefile KVM: ppc: refactor instruction emulation into generic and core-specific pieces 2008-12-31 16:52:21 +02:00
powerpc.c KVM: ppc: Refactor powerpc.c to relocate 440-specific code 2008-12-31 16:52:21 +02:00