From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Date: Wed, 06 May 2009 15:45:38 +0000 Subject: [patch] qemu-kvm define cpu_has_work() for ia64 Message-Id: <4A01B0A2.4020709@sgi.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------000900080605030208070305" List-Id: To: kvm-ia64@vger.kernel.org This is a multi-part message in MIME format. --------------000900080605030208070305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This one is needed to build on ia64. Cheers, Jes --------------000900080605030208070305 Content-Type: text/x-patch; name="0008-qemu-kvm-ia64-has-work.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0008-qemu-kvm-ia64-has-work.patch" Defined cpu_has_work() for ia64. Signed-off-by: Jes Sorensen --- target-ia64/exec.h | 5 +++++ 1 file changed, 5 insertions(+) Index: qemu-kvm/target-ia64/exec.h =================================================================== --- qemu-kvm.orig/target-ia64/exec.h +++ qemu-kvm/target-ia64/exec.h @@ -53,4 +53,9 @@ return EXCP_HALTED; } +static inline int cpu_has_work(CPUState *env) +{ + return (env->interrupt_request & (CPU_INTERRUPT_HARD)); +} + #endif --------------000900080605030208070305--