aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJes Sorensen <jes@sgi.com>2009-05-06 17:45:38 +0200
committerAvi Kivity <avi@redhat.com>2009-05-07 14:55:40 +0300
commit8acc0cfa55cdb4000dddb9ce75abd12f07225b36 (patch)
treeca672c49bca79edec974f414a982538b81e0b7f9 /target-ia64
parentDo not build extboot on non-x86 (diff)
downloadqemu-kvm-8acc0cfa55cdb4000dddb9ce75abd12f07225b36.tar.gz
qemu-kvm-8acc0cfa55cdb4000dddb9ce75abd12f07225b36.tar.bz2
qemu-kvm-8acc0cfa55cdb4000dddb9ce75abd12f07225b36.zip
Define cpu_has_work() for ia64
Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'target-ia64')
-rw-r--r--target-ia64/exec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-ia64/exec.h b/target-ia64/exec.h
index 37b64f716..060d9c35b 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