[patch] kvm-userland ia64 build fix

Jes Sorensen <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64
Message-ID <[email protected]>
Hi,

In order to build current QEMU on ia64, we need to define CPUState as
struct CPUIA64State instead of relying on the typedef.

Please apply.

Cheers,
Jes
0001-qemu-ia64-cpustate-build-fix.patch (text/x-patch, 793 B)
Define CPUState as struct CPUIA64State to avoid compile errors on ia64.

Signed-off-by: Jes Sorensen <[email protected]>

---
 qemu/target-ia64/cpu.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: kvm-userspace2.git/qemu/target-ia64/cpu.h
===================================================================
--- kvm-userspace2.git.orig/qemu/target-ia64/cpu.h
+++ kvm-userspace2.git/qemu/target-ia64/cpu.h
@@ -40,13 +40,15 @@
 #include "cpu-defs.h"
 
 #include "softfloat.h"
+
+#define CPUState struct CPUIA64State
+
 typedef struct CPUIA64State {
     CPU_COMMON;
     uint32_t hflags;
     int mp_state;
 } CPUIA64State;
 
-#define CPUState CPUIA64State
 #define cpu_gen_code cpu_ia64_gen_code
 #define cpu_init cpu_ia64_init
 #define cpu_signal_handler cpu_ia64_signal_handler
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.