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

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

This one is needed to build on ia64.

Cheers,
Jes
0008-qemu-kvm-ia64-has-work.patch (text/x-patch, 492 B)
Defined cpu_has_work() for ia64.

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

---
 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
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.