On 6/4/21 8:52 AM, Alex Bennée wrote:
From: Claudio Fontana<cfont...@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<cfont...@suse.de>
Cc: Julien Grall<jgr...@amazon.com>
Cc: Stefano Stabellini<sstabell...@kernel.org>
Cc: Olaf Hering<oher...@suse.com>
Cc: Alex Bennée<alex.ben...@linaro.org>
Signed-off-by: Alex Bennée<alex.ben...@linaro.org>
---
  target/arm/cpu.c     |  9 +++++----
  target/arm/cpu64.c   |  9 +++++----
  target/arm/machine.c | 18 ++++++------------
  3 files changed, 16 insertions(+), 20 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to