Skip to content
Snippets Groups Projects
Commit a1b0e461 authored by Claudio Fontana's avatar Claudio Fontana Committed by Paolo Bonzini
Browse files

hax: unbreak accelerator cpu code after cpus.c split


during my split of cpus.c, code line
"current_cpu = cpu"
was removed by mistake, causing hax to break.

This commit fixes the situation restoring it.

Reported-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
Fixes: e92558e4
Signed-off-by: default avatarClaudio Fontana <cfontana@suse.de>
Message-Id: <20201016080032.13914-1-cfontana@suse.de>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent fc69fa21
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ static void *hax_cpu_thread_fn(void *arg)
qemu_thread_get_self(cpu->thread);
cpu->thread_id = qemu_get_thread_id();
current_cpu = cpu;
hax_init_vcpu(cpu);
cpu_thread_signal_created(cpu);
qemu_guest_random_seed_thread_part2(cpu->random_seed);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment