cpus: Move CPU code from exec.c to cpus-common.c
commit421a75e283f6bad2ac64119ecf6a1dfd3ebfda61
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 2 Jul 2020 10:40:17 +0000 (2 12:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 22:02:24 +0000 (10 18:02 -0400)
tree197a3065cd878cd0d18efb36bd27020cca293a1c
parentcbe0dad1906d29d9ea83169b672e9e709c9fc1f8
cpus: Move CPU code from exec.c to cpus-common.c

This code was introduced with SMP support in commit 6a00d60127,
later commit 267f685b8b moved CPU list management to common code
but forgot this code. Move now and simplify ifdef'ry.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200702104017.14057-1-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpus-common.c
exec.c