Skip to content

Commit

Permalink
Fix single stepping wrt pending interrupts
Browse files Browse the repository at this point in the history
(Jason Wessel)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4160 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
aurel32 committed Apr 4, 2008
1 parent 41a00ab commit 95b0100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 95b0100

Please sign in to comment.