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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This one is needed to build on ia64.

Cheers,
Jes

Defined cpu_has_work() for ia64.

Signed-off-by: Jes Sorensen <jes@xxxxxxx>

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

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux