peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame kvm-upstream-ppc.patch

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