Skip to contentSkip to conversation

kvm-userland ia64 build fix

PATCH Applied Jes Sorensen 2 participants 2 messages Mar 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-userland ia64 build fix

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

Define CPUState as struct CPUIA64State to avoid compile errors on ia64.

---
 qemu/target-ia64/cpu.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
qemu/target-ia64/cpu.h +3 -1
Index: 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
Applied
#1 lore raw
Quoted 4 lines · Jes Sorensen

Hi,

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

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function