diff mbox

qemu-kvm define cpu_has_work() for ia64

Message ID 4A01B0A2.4020709@sgi.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jes Sorensen May 6, 2009, 3:45 p.m. UTC
Hi,

This one is needed to build on ia64.

Cheers,
Jes

Comments

Avi Kivity May 7, 2009, 10:07 a.m. UTC | #1
Jes Sorensen wrote:
> Hi,
>
> This one is needed to build on ia64.
>

Applied, thanks.
diff mbox

Patch

Defined cpu_has_work() for ia64.

Signed-off-by: Jes Sorensen <jes@sgi.com>

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