Revision 26bc95a0

b/exec.c
1537 1537
    TranslationBlock *tb;
1538 1538
    static spinlock_t interrupt_lock = SPIN_LOCK_UNLOCKED;
1539 1539

  
1540
    spin_lock(&interrupt_lock);
1540 1541
    tb = env->current_tb;
1541 1542
    /* if the cpu is currently executing code, we must unlink it and
1542 1543
       all the potentially executing TB */
1543 1544
    if (tb) {
1544
        spin_lock(&interrupt_lock);
1545 1545
        env->current_tb = NULL;
1546 1546
        tb_reset_jump_recursive(tb);
1547
        spin_unlock(&interrupt_lock);
1548 1547
    }
1548
    spin_unlock(&interrupt_lock);
1549 1549
}
1550 1550

  
1551 1551
/* mask must never be zero, except for A20 change call */

Also available in: Unified diff