accel: introduce new accessor functions
commitbb883fd67707fd7f1bf04369aafd7ea7ad5b01b0
authorClaudio Fontana <cfontana@suse.de>
Mon, 22 Mar 2021 13:27:42 +0000 (22 14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 May 2021 19:41:50 +0000 (10 15:41 -0400)
treed2f6a06aa5972b7ed82d76c39672233ea8b01e8b
parent30565f10e90778cb52bcf4d798195d18d7aa80d7
accel: introduce new accessor functions

avoid open coding the accesses to cpu->accel_cpu interfaces,
and instead introduce:

accel_cpu_instance_init,
accel_cpu_realizefn

to be used by the targets/ initfn code,
and by cpu_exec_realizefn respectively.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210322132800.7470-7-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/accel-common.c
cpu.c
include/qemu/accel.h
target/i386/cpu.c