Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwjWl-0002U2-Ba for qemu-devel@nongnu.org; Thu, 15 May 2008 15:54:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwjWk-0002Tl-W4 for qemu-devel@nongnu.org; Thu, 15 May 2008 15:54:11 -0400 Received: from [199.232.76.173] (port=59135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwjWk-0002Ti-Qp for qemu-devel@nongnu.org; Thu, 15 May 2008 15:54:10 -0400 Received: from savannah.gnu.org ([199.232.41.3]:38091 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JwjWk-0000wF-G6 for qemu-devel@nongnu.org; Thu, 15 May 2008 15:54:10 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JwjWh-0007t7-Ax for qemu-devel@nongnu.org; Thu, 15 May 2008 19:54:08 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JwjWe-0007sq-T5 for qemu-devel@nongnu.org; Thu, 15 May 2008 19:54:05 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Thu, 15 May 2008 19:54:04 +0000 Subject: [Qemu-devel] [4462] Always process real timers regardless of singlestep mode ( Jason Wessel). Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4462 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4462 Author: edgar_igl Date: 2008-05-15 19:54:00 +0000 (Thu, 15 May 2008) Log Message: ----------- Always process real timers regardless of singlestep mode (Jason Wessel). Modified Paths: -------------- trunk/cpu-exec.c trunk/vl.c Modified: trunk/cpu-exec.c =================================================================== --- trunk/cpu-exec.c 2008-05-15 19:44:09 UTC (rev 4461) +++ trunk/cpu-exec.c 2008-05-15 19:54:00 UTC (rev 4462) @@ -420,7 +420,7 @@ #if defined(TARGET_I386) && env->hflags & HF_GIF_MASK #endif - && !(env->singlestep_enabled & SSTEP_NOIRQ)) { + && likely(!(env->singlestep_enabled & SSTEP_NOIRQ))) { if (interrupt_request & CPU_INTERRUPT_DEBUG) { env->interrupt_request &= ~CPU_INTERRUPT_DEBUG; env->exception_index = EXCP_DEBUG; Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-05-15 19:44:09 UTC (rev 4461) +++ trunk/vl.c 2008-05-15 19:54:00 UTC (rev 4462) @@ -7032,7 +7032,7 @@ qemu_aio_poll(); if (vm_running) { - if (!(cur_cpu->singlestep_enabled & SSTEP_NOTIMER)) + if (likely(!(cur_cpu->singlestep_enabled & SSTEP_NOTIMER))) qemu_run_timers(&active_timers[QEMU_TIMER_VIRTUAL], qemu_get_clock(vm_clock)); /* run dma transfers, if any */ @@ -7040,7 +7040,6 @@ } /* real time timers */ - if (!(cur_cpu->singlestep_enabled & SSTEP_NOTIMER)) qemu_run_timers(&active_timers[QEMU_TIMER_REALTIME], qemu_get_clock(rt_clock));