qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] target-sh4: move intr_at_halt out of cpu_halted


From: Aurelien Jarno
Subject: [Qemu-devel] Re: [PATCH] target-sh4: move intr_at_halt out of cpu_halted()
Date: Thu, 24 Feb 2011 14:09:16 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Feb 24, 2011 at 01:05:02PM +0100, Paolo Bonzini wrote:
> On 02/24/2011 12:54 PM, Aurelien Jarno wrote:
> >All targets except SH4 have the same cpu_halted() routine, and it has
> >only one caller. It is therefore a good candidate for inlining.
> >
> >The difference is the handling of the intr_at_halt, which is necessary
> >to ignore SR.BL when sleeping. Move intr_at_halt handling out of it, by
> >setting this variable while executing the sleep instruction, and
> >clearing it when the CPU has been woken-up by an interrupt, whatever the
> >state of SR.BL.
> >
> >Cc: Paolo Bonzini<address@hidden>
> >Signed-off-by: Aurelien Jarno<address@hidden>
> 
> Makes sense, thanks!
> 
> You may want to rename intr_at_halt to env->in_sleep or something like that.
> 

Agreed, I will send a new patch.


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
address@hidden                 http://www.aurel32.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]