Use a dedicated function to request exit from execution loop

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6762 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
aurel32 2009-03-07 21:28:24 +00:00
parent 9e995645b5
commit 3098dba01c
9 changed files with 48 additions and 39 deletions

View file

@ -200,7 +200,7 @@ static inline void start_exclusive(void)
for (other = first_cpu; other; other = other->next_cpu) {
if (other->running) {
pending_cpus++;
cpu_interrupt(other, CPU_INTERRUPT_EXIT);
cpu_exit(other);
}
}
if (pending_cpus > 1) {