]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Move definition of 'host' cpu type into cpu.c
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Mar 2018 17:09:44 +0000 (17:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Mar 2018 17:09:44 +0000 (17:09 +0000)
commit86f0a186d6f05c429e982628fe5a2aa7ea1e2724
tree447c2600a7d31eec7e674fc6d7fb889bea697be1
parentc4487d76d52dcc050c1e144ab90c0565a5fc716e
target/arm: Move definition of 'host' cpu type into cpu.c

Move the definition of the 'host' cpu type into cpu.c, where all the
other CPU types are defined.  We can do this now we've decoupled it
from the KVM-specific host feature probing.  This means we now create
the type unconditionally (assuming we were built with KVM support at
all), but if you try to use it without -enable-kvm this will end
up in the "host cpu probe failed and KVM not enabled" path in
arm_cpu_realizefn(), for an appropriate error message.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20180308130626.12393-3-peter.maydell@linaro.org
target/arm/cpu.c
target/arm/kvm.c