d28bc6c
From d842e3222f8ce614769d1cf8227bb3b8dbf209bc Mon Sep 17 00:00:00 2001
Glauber Costa 8571d06
From: Glauber Costa <glommer@redhat.com>
be685f7
Date: Wed, 24 Jun 2009 14:22:57 +0100
d28bc6c
Subject: [PATCH] use KVM_UPSTREAM for ppc.
Glauber Costa 8571d06
Glauber Costa 8571d06
ppc should compile with upstream qemu code, so, put these
Glauber Costa 8571d06
defines in ppc specific code that references kvm functions.
Glauber Costa 8571d06
Glauber Costa 8571d06
We don put them in config.h in this case, since there are
Glauber Costa 8571d06
files (like vl.c) that includes both kvm.h and qemu-kvm.h,
Glauber Costa 8571d06
and would break compilation.
Glauber Costa 8571d06
Glauber Costa 8571d06
Signed-off-by: Glauber Costa <glommer@redhat.com>
be685f7
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
d28bc6c
Fedora-patch: kvm-upstream-ppc.patch
Glauber Costa 8571d06
---
Glauber Costa 206c786
 hw/ppc440.c            |    1 +
Glauber Costa 206c786
 hw/ppc440_bamboo.c     |    1 +
Glauber Costa 206c786
 hw/ppce500_mpc8544ds.c |    1 +
be685f7
 target-ppc/helper.c    |    1 +
be685f7
 4 files changed, 4 insertions(+), 0 deletions(-)
Glauber Costa 8571d06
be685f7
diff --git a/hw/ppc440.c b/hw/ppc440.c
be685f7
index 00d82e4..164c326 100644
be685f7
--- a/hw/ppc440.c
be685f7
+++ b/hw/ppc440.c
Glauber Costa 8571d06
@@ -18,6 +18,7 @@
Glauber Costa 8571d06
 #include "ppc440.h"
Glauber Costa 8571d06
 #include "ppc405.h"
Glauber Costa 8571d06
 #include "sysemu.h"
Glauber Costa 8571d06
+#define KVM_UPSTREAM
Glauber Costa 8571d06
 #include "kvm.h"
Glauber Costa 8571d06
 
Glauber Costa 8571d06
 #define PPC440EP_PCI_CONFIG     0xeec00000
be685f7
diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
be685f7
index fbd447c..60ddaf4 100644
be685f7
--- a/hw/ppc440_bamboo.c
be685f7
+++ b/hw/ppc440_bamboo.c
Glauber Costa 8571d06
@@ -21,6 +21,7 @@
Glauber Costa 8571d06
 #include "boards.h"
Glauber Costa 8571d06
 #include "sysemu.h"
Glauber Costa 8571d06
 #include "ppc440.h"
Glauber Costa 8571d06
+#define KVM_UPSTREAM
Glauber Costa 8571d06
 #include "kvm.h"
Glauber Costa 8571d06
 #include "kvm_ppc.h"
Glauber Costa 8571d06
 #include "device_tree.h"
be685f7
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
be685f7
index 8fa0383..47e35e6 100644
be685f7
--- a/hw/ppce500_mpc8544ds.c
be685f7
+++ b/hw/ppce500_mpc8544ds.c
Glauber Costa 206c786
@@ -16,6 +16,7 @@
Glauber Costa 206c786
 
Glauber Costa 206c786
 #include <dirent.h>
Glauber Costa 206c786
 
Glauber Costa 206c786
+#define KVM_UPSTREAM
Glauber Costa 206c786
 #include "config.h"
Glauber Costa 206c786
 #include "qemu-common.h"
Glauber Costa 206c786
 #include "net.h"
be685f7
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
be685f7
index e02dcb0..027c8e7 100644
be685f7
--- a/target-ppc/helper.c
be685f7
+++ b/target-ppc/helper.c
Glauber Costa 8571d06
@@ -29,6 +29,7 @@
Glauber Costa 8571d06
 #include "exec-all.h"
Glauber Costa 8571d06
 #include "helper_regs.h"
Glauber Costa 8571d06
 #include "qemu-common.h"
Glauber Costa 8571d06
+#define KVM_UPSTREAM
Glauber Costa 8571d06
 #include "kvm.h"
Glauber Costa 8571d06
 
Glauber Costa 8571d06
 //#define DEBUG_MMU
be685f7
-- 
d28bc6c
1.6.2.5
be685f7