]> git.proxmox.com Git - qemu.git/commitdiff
PPC: Add non-kvm stub file
authorAlexander Graf <agraf@suse.de>
Fri, 28 Jun 2013 11:47:15 +0000 (13:47 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Jun 2013 23:11:14 +0000 (01:11 +0200)
There are cases where a kvm provided function is called from generic
hw code that doesn't know whether kvm is available or not. Provide
a stub file which can provide simple replacement functions for those
cases.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
target-ppc/Makefile.objs
target-ppc/kvm-stub.c [new file with mode: 0644]

index 2c43c34a5cbe042e08b74335457b9eea514f4a70..6e78cb3624392165910ed6e49ecdf6cef71cd691 100644 (file)
@@ -5,6 +5,7 @@ obj-y += machine.o mmu_helper.o mmu-hash32.o
 obj-$(TARGET_PPC64) += mmu-hash64.o
 endif
 obj-$(CONFIG_KVM) += kvm.o kvm_ppc.o
+obj-$(CONFIG_NO_KVM) += kvm-stub.o
 obj-y += excp_helper.o
 obj-y += fpu_helper.o
 obj-y += int_helper.o
diff --git a/target-ppc/kvm-stub.c b/target-ppc/kvm-stub.c
new file mode 100644 (file)
index 0000000..0f5c27d
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * QEMU KVM PPC specific function stubs
+ *
+ * Copyright Freescale Inc. 2013
+ *
+ * Author: Alexander Graf <agraf@suse.de>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+#include "qemu-common.h"