From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Date: Wed, 25 Mar 2009 15:56:39 +0000 Subject: [patch] kvm-userland ia64 build fix Message-Id: <49CA5437.4080903@sgi.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------000505020900010903080002" List-Id: To: kvm-ia64@vger.kernel.org This is a multi-part message in MIME format. --------------000505020900010903080002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000505020900010903080002 Content-Type: text/x-patch; name="0001-qemu-ia64-cpustate-build-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0001-qemu-ia64-cpustate-build-fix.patch" Define CPUState as struct CPUIA64State to avoid compile errors on ia64. Signed-off-by: Jes Sorensen --- 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 --------------000505020900010903080002--