aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-01-24 13:20:59 -1000
committerPeter Maydell <peter.maydell@linaro.org>2023-02-03 12:59:21 +0000
commita431ab0e4ef7fcff4349fd8453d0ea5f06ec2617 (patch)
treec4d2bf9afd7813000059564d8d9201c9c9b4f50b /hw/arm
parentbf4460a8d9a86f6cfe05d7a7f470c48e3a93d8b2 (diff)
downloadqemu-a431ab0e4ef7fcff4349fd8453d0ea5f06ec2617.zip
qemu-a431ab0e4ef7fcff4349fd8453d0ea5f06ec2617.tar.gz
qemu-a431ab0e4ef7fcff4349fd8453d0ea5f06ec2617.tar.bz2
hw/arm: Use TYPE_ARM_SMMUV3
Use the macro instead of two explicit string literals. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Message-id: 20230124232059.4017615-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/sbsa-ref.c3
-rw-r--r--hw/arm/virt.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index 4bb4446..8378441 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -29,6 +29,7 @@
#include "exec/hwaddr.h"
#include "kvm_arm.h"
#include "hw/arm/boot.h"
+#include "hw/arm/smmuv3.h"
#include "hw/block/flash.h"
#include "hw/boards.h"
#include "hw/ide/internal.h"
@@ -574,7 +575,7 @@ static void create_smmu(const SBSAMachineState *sms, PCIBus *bus)
DeviceState *dev;
int i;
- dev = qdev_new("arm-smmuv3");
+ dev = qdev_new(TYPE_ARM_SMMUV3);
object_property_set_link(OBJECT(dev), "primary-bus", OBJECT(bus),
&error_abort);
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index ea2413a..90a7099 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1343,7 +1343,7 @@ static void create_smmu(const VirtMachineState *vms,
return;
}
- dev = qdev_new("arm-smmuv3");
+ dev = qdev_new(TYPE_ARM_SMMUV3);
object_property_set_link(OBJECT(dev), "primary-bus", OBJECT(bus),
&error_abort);