Re: [patch] qemu-kvm define cpu_has_work() for ia64

2009-05-07 Thread Avi Kivity

Jes Sorensen wrote:

Hi,

This one is needed to build on ia64.



Applied, thanks.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[patch] qemu-kvm define cpu_has_work() for ia64

2009-05-06 Thread Jes Sorensen

Hi,

This one is needed to build on ia64.

Cheers,
Jes

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