From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60153 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmtSq-0003CS-AN for qemu-devel@nongnu.org; Tue, 08 Feb 2011 14:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmtSo-0006p8-VV for qemu-devel@nongnu.org; Tue, 08 Feb 2011 14:43:03 -0500 Received: from mail-ew0-f45.google.com ([209.85.215.45]:64798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmtSo-0006ol-R6 for qemu-devel@nongnu.org; Tue, 08 Feb 2011 14:43:02 -0500 Received: by ewy10 with SMTP id 10so3296417ewy.4 for ; Tue, 08 Feb 2011 11:43:01 -0800 (PST) Date: Tue, 8 Feb 2011 20:42:57 +0100 From: "Edgar E. Iglesias" Subject: Re: [Qemu-devel] [CFT PATCH 02/12] cris, microblaze: use cpu_has_work Message-ID: <20110208194257.GA9622@laped.lan> References: <1297185509-20996-1-git-send-email-pbonzini@redhat.com> <1297185509-20996-3-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1297185509-20996-3-git-send-email-pbonzini@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Tue, Feb 08, 2011 at 06:18:19PM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini Thanks, I've applied this one. Cheers > --- > target-cris/exec.h | 4 +--- > target-microblaze/exec.h | 4 +--- > 2 files changed, 2 insertions(+), 6 deletions(-) > > diff --git a/target-cris/exec.h b/target-cris/exec.h > index 93ce768..34c0132 100644 > --- a/target-cris/exec.h > +++ b/target-cris/exec.h > @@ -37,9 +37,7 @@ static inline int cpu_halted(CPUState *env) { > if (!env->halted) > return 0; > > - /* IRQ, NMI and GURU execeptions wakes us up. */ > - if (env->interrupt_request > - & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) { > + if (cpu_has_work(env)) { > env->halted = 0; > return 0; > } > diff --git a/target-microblaze/exec.h b/target-microblaze/exec.h > index 87b2494..ab19828 100644 > --- a/target-microblaze/exec.h > +++ b/target-microblaze/exec.h > @@ -36,9 +36,7 @@ static inline int cpu_halted(CPUState *env) { > if (!env->halted) > return 0; > > - /* IRQ, NMI and GURU execeptions wakes us up. */ > - if (env->interrupt_request > - & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) { > + if (cpu_has_work(env)) { > env->halted = 0; > return 0; > } > -- > 1.7.3.5 > > >