From: Claudio Fontana<cfontana@suse.de>
There might be more than just KVM and TCG in the future,
so where appropriate, replace broad "else" statements
with the appropriate if (accel_enabled()) check.
Also invert some checks for !kvm_enabled() or !tcg_enabled()
where it seems appropriate to do so.
Note that to make qtest happy we need to perform gpio
initialization in the qtest_enabled() case as well.
Hopefully we do not break any Xen stuff.
Signed-off-by: Claudio Fontana<cfontana@suse.de>
Cc: Julien Grall<jgrall@amazon.com>
Cc: Stefano Stabellini<sstabellini@kernel.org>
Cc: Olaf Hering<OHering@suse.com>
Cc: Alex Bennée<alex.bennee@linaro.org>
Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
---
target/arm/cpu.c | 9 +++++----
target/arm/cpu64.c | 9 +++++----
target/arm/machine.c | 18 ++++++------------
3 files changed, 16 insertions(+), 20 deletions(-)