aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2023-02-03 14:44:31 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-02-16 16:00:47 +0000
commit8e4f2b277b4c1e1460a22e16e59fa11e6c36fcf4 (patch)
treec170e65ea5e56cc5b2ea1895950756389b00572e /hw/arm
parentf4880c2da4c8eadfee3f40b76af77f77574cebef (diff)
downloadqemu-8e4f2b277b4c1e1460a22e16e59fa11e6c36fcf4.zip
qemu-8e4f2b277b4c1e1460a22e16e59fa11e6c36fcf4.tar.gz
qemu-8e4f2b277b4c1e1460a22e16e59fa11e6c36fcf4.tar.bz2
arm/virt: don't try to spell out the accelerator
Just use current_accel_name() directly. Signed-off-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/virt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 75f2894..8d13e44 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -2133,21 +2133,21 @@ static void machvirt_init(MachineState *machine)
if (vms->secure && (kvm_enabled() || hvf_enabled())) {
error_report("mach-virt: %s does not support providing "
"Security extensions (TrustZone) to the guest CPU",
- kvm_enabled() ? "KVM" : "HVF");
+ current_accel_name());
exit(1);
}
if (vms->virt && (kvm_enabled() || hvf_enabled())) {
error_report("mach-virt: %s does not support providing "
"Virtualization extensions to the guest CPU",
- kvm_enabled() ? "KVM" : "HVF");
+ current_accel_name());
exit(1);
}
if (vms->mte && (kvm_enabled() || hvf_enabled())) {
error_report("mach-virt: %s does not support providing "
"MTE to the guest CPU",
- kvm_enabled() ? "KVM" : "HVF");
+ current_accel_name());
exit(1);
}