Revision 55274a30 cpus.c

b/cpus.c
100 100
{
101 101
    if (env->stop)
102 102
        return 0;
103
    if (env->stopped)
104
        return 0;
105
    if (!vm_running)
103
    if (env->stopped || !vm_running)
106 104
        return 0;
107 105
    return 1;
108 106
}
......
111 109
{
112 110
    if (env->stop)
113 111
        return 1;
114
    if (env->stopped)
112
    if (env->stopped || !vm_running)
115 113
        return 0;
116 114
    if (!env->halted)
117 115
        return 1;

Also available in: Unified diff