mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 06:24:53 +08:00
75f74f0dbe
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>
23 lines
502 B
Makefile
23 lines
502 B
Makefile
#
|
|
# Makefile for Kernel-based Virtual Machine module
|
|
#
|
|
|
|
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/powerpc/kvm
|
|
|
|
common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
|
|
|
|
common-objs-$(CONFIG_KVM_TRACE) += $(addprefix ../../../virt/kvm/, kvm_trace.o)
|
|
|
|
kvm-objs := $(common-objs-y) powerpc.o emulate.o
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
|
|
AFLAGS_booke_interrupts.o := -I$(obj)
|
|
|
|
kvm-440-objs := \
|
|
booke.o \
|
|
booke_interrupts.o \
|
|
44x.o \
|
|
44x_tlb.o \
|
|
44x_emulate.o
|
|
obj-$(CONFIG_KVM_440) += kvm-440.o
|