public inbox for kvm-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] qemu-kvm define cpu_has_work() for ia64
@ 2009-05-06 15:45 Jes Sorensen
  2009-05-07 10:07 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Jes Sorensen @ 2009-05-06 15:45 UTC (permalink / raw)
  To: kvm-ia64

[-- Attachment #1: Type: text/plain, Size: 56 bytes --]

Hi,

This one is needed to build on ia64.

Cheers,
Jes


[-- Attachment #2: 0008-qemu-kvm-ia64-has-work.patch --]
[-- Type: text/x-patch, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-07 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06 15:45 [patch] qemu-kvm define cpu_has_work() for ia64 Jes Sorensen
2009-05-07 10:07 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox