qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4160] Fix single stepping wrt pending interrupts
@ 2008-04-04 17:16 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-04-04 17:16 UTC (permalink / raw)
  To: qemu-devel

Revision: 4160
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4160
Author:   aurel32
Date:     2008-04-04 17:16:35 +0000 (Fri, 04 Apr 2008)

Log Message:
-----------
Fix single stepping wrt pending interrupts

(Jason Wessel)

Modified Paths:
--------------
    trunk/vl.c

Modified: trunk/vl.c
===================================================================
--- trunk/vl.c	2008-04-03 03:13:16 UTC (rev 4159)
+++ trunk/vl.c	2008-04-04 17:16:35 UTC (rev 4160)
@@ -7541,7 +7541,7 @@
                 qemu_time += profile_getclock() - ti;
 #endif
                 next_cpu = env->next_cpu ?: first_cpu;
-                if (event_pending) {
+                if (event_pending && likely(ret != EXCP_DEBUG)) {
                     ret = EXCP_INTERRUPT;
                     event_pending = 0;
                     break;
@@ -7573,7 +7573,7 @@
 		qemu_system_powerdown();
                 ret = EXCP_INTERRUPT;
             }
-            if (ret == EXCP_DEBUG) {
+            if (unlikely(ret == EXCP_DEBUG)) {
                 vm_stop(EXCP_DEBUG);
             }
             /* If all cpus are halted then wait until the next IRQ */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-04 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 17:16 [Qemu-devel] [4160] Fix single stepping wrt pending interrupts Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).