Revision 34dec6a5 cpu-exec.c

b/cpu-exec.c
22 22
#include "tcg.h"
23 23
#include "kvm.h"
24 24

  
25
#include <assert.h>
26

  
25 27
#if !defined(CONFIG_SOFTMMU)
26 28
#undef EAX
27 29
#undef ECX
......
260 262
                    env = cpu_single_env;
261 263
#define env cpu_single_env
262 264
#endif
263
            env->current_tb = NULL;
265
            assert (env->current_tb == NULL);
264 266
            /* if an exception is pending, we execute it here */
265 267
            if (env->exception_index >= 0) {
266 268
                if (env->exception_index >= EXCP_INTERRUPT) {
......
595 597
                }
596 598
                spin_unlock(&tb_lock);
597 599
                env->current_tb = tb;
600
                assert (env->current_tb);
598 601

  
599 602
                /* cpu_interrupt might be called while translating the
600 603
                   TB, but before it is linked into a potentially
......
640 643
                            cpu_loop_exit();
641 644
                        }
642 645
                    }
646
                    assert (env->current_tb == NULL);
643 647
                }
644 648
                /* reset soft MMU for next block (it can currently
645 649
                   only be set by a memory fault) */

Also available in: Unified diff