From: aurel32 Date: Fri, 4 Apr 2008 17:16:35 +0000 (+0000) Subject: Fix single stepping wrt pending interrupts X-Git-Tag: TizenStudio_2.0_p2.3~12063 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=969487cd9c52533fed42503b5ffe811862684023;p=sdk%2Femulator%2Fqemu.git Fix single stepping wrt pending interrupts (Jason Wessel) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4160 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/vl.c b/vl.c index 61eb191..318eb35 100644 --- a/vl.c +++ b/vl.c @@ -7541,7 +7541,7 @@ static int main_loop(void) 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 @@ static int main_loop(void) 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 */