[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2) |
Date: |
Tue, 15 Feb 2011 18:56:31 -0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Note: to be applied to uq/master.
In icount mode, halt emulation should take into account the nearest event when
sleeping.
Signed-off-by: Marcelo Tosatti <address@hidden>
Reported-and-tested-by: "Edgar E. Iglesias" <address@hidden>
diff --git a/cpus.c b/cpus.c
index 468544c..21c3eba 100644
--- a/cpus.c
+++ b/cpus.c
@@ -770,7 +770,7 @@ static void qemu_tcg_wait_io_event(void)
CPUState *env;
while (all_cpu_threads_idle()) {
- qemu_cond_timedwait(tcg_halt_cond, &qemu_global_mutex, 1000);
+ qemu_cond_timedwait(tcg_halt_cond, &qemu_global_mutex,
qemu_calculate_timeout());
}
qemu_mutex_unlock(&qemu_global_mutex);
- [Qemu-devel] [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD, Marcelo Tosatti, 2011/02/15
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD, Jan Kiszka, 2011/02/15
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD, Marcelo Tosatti, 2011/02/15
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD, Jan Kiszka, 2011/02/15
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD, Marcelo Tosatti, 2011/02/15
- [Qemu-devel] [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2),
Marcelo Tosatti <=
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Jan Kiszka, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Paolo Bonzini, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Jan Kiszka, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Paolo Bonzini, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Jan Kiszka, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Paolo Bonzini, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Jan Kiszka, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Paolo Bonzini, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Marcelo Tosatti, 2011/02/16
- [Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2), Paolo Bonzini, 2011/02/17