diff options
| author | Alex Bennée | 2017-03-30 19:32:29 +0200 |
|---|---|---|
| committer | Alex Bennée | 2017-04-10 11:14:50 +0200 |
| commit | bf51c7206facff628df24c5499ace9c97c503962 (patch) | |
| tree | 7ed5c356f18a524a17c443dc2949de171de80bcc /cpus.c | |
| parent | target/i386/misc_helper: wrap BQL around another IRQ generator (diff) | |
| download | qemu-bf51c7206facff628df24c5499ace9c97c503962.tar.gz qemu-bf51c7206facff628df24c5499ace9c97c503962.tar.xz qemu-bf51c7206facff628df24c5499ace9c97c503962.zip | |
cpus: remove icount handling from qemu_tcg_cpu_thread_fn
We should never be running in multi-threaded mode with icount enabled.
There is no point calling handle_icount_deadline here so remove it and
assert !use_icount.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'cpus.c')
| -rw-r--r-- | cpus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1392,6 +1392,8 @@ static void *qemu_tcg_cpu_thread_fn(void *arg) { CPUState *cpu = arg; + g_assert(!use_icount); + rcu_register_thread(); qemu_mutex_lock_iothread(); @@ -1434,8 +1436,6 @@ static void *qemu_tcg_cpu_thread_fn(void *arg) } } - handle_icount_deadline(); - atomic_mb_set(&cpu->exit_request, 0); qemu_tcg_wait_io_event(cpu); } |
