|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH] target-sh4: move intr_at_halt out of cpu_halted() |
Date: | Thu, 24 Feb 2011 13:05:02 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
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. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |