From patchwork Wed May 6 15:45:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 22066 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n46FjkBr012124 for ; Wed, 6 May 2009 15:45:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756186AbZEFPpm (ORCPT ); Wed, 6 May 2009 11:45:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757574AbZEFPpm (ORCPT ); Wed, 6 May 2009 11:45:42 -0400 Received: from relay3.sgi.com ([192.48.156.57]:35591 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755843AbZEFPpl (ORCPT ); Wed, 6 May 2009 11:45:41 -0400 Received: from eye3.emea.sgi.com (eye3.emea.sgi.com [144.253.156.24]) by relay3.corp.sgi.com (Postfix) with ESMTP id 5658AAC007; Wed, 6 May 2009 08:45:40 -0700 (PDT) Message-ID: <4A01B0A2.4020709@sgi.com> Date: Wed, 06 May 2009 17:45:38 +0200 From: Jes Sorensen User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Avi Kivity CC: "Zhang, Xiantao" , "kvm-ia64@vger.kernel.org" , "kvm@vger.kernel.org" Subject: [patch] qemu-kvm define cpu_has_work() for ia64 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi, This one is needed to build on ia64. Cheers, Jes Defined cpu_has_work() for ia64. Signed-off-by: Jes Sorensen --- 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