From: Jes Sorensen <j...@sgi.com>

Signed-off-by: Jes Sorensen <j...@sgi.com>
Signed-off-by: Avi Kivity <a...@redhat.com>

diff --git a/target-ia64/exec.h b/target-ia64/exec.h
index 37b64f7..060d9c3 100644
--- a/target-ia64/exec.h
+++ b/target-ia64/exec.h
@@ -53,4 +53,9 @@ static inline int cpu_halted(CPUState *env) {
     return EXCP_HALTED;
 }
 
+static inline int cpu_has_work(CPUState *env)
+{
+    return (env->interrupt_request & (CPU_INTERRUPT_HARD));
+}
+
 #endif
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to