|
@@ -194,6 +194,9 @@ void start_exclusive(void)
|
|
CPUState *other_cpu;
|
|
CPUState *other_cpu;
|
|
int running_cpus;
|
|
int running_cpus;
|
|
|
|
|
|
|
|
+ /* Ensure we are not running, or start_exclusive will be blocked. */
|
|
|
|
+ g_assert(!current_cpu->running);
|
|
|
|
+
|
|
if (current_cpu->exclusive_context_count) {
|
|
if (current_cpu->exclusive_context_count) {
|
|
current_cpu->exclusive_context_count++;
|
|
current_cpu->exclusive_context_count++;
|
|
return;
|
|
return;
|