Skip to content
Snippets Groups Projects
Commit 4e4fa6c1 authored by Richard Henderson's avatar Richard Henderson
Browse files

accel/tcg: Complete cpu initialization before registration


Delay cpu_list_add until realize is complete, so that cross-cpu
interaction does not happen with incomplete cpu state.  For this,
we must delay plugin initialization out of tcg_exec_realizefn,
because no cpu_index has been assigned.

Fixes a problem with cross-cpu jump cache flushing, when the
jump cache has not yet been allocated.

Fixes: a976a99a ("include/hw/core: Create struct CPUJumpCache")
Acked-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Reported-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 63179330
No related branches found
No related tags found
No related merge requests found
Loading
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