aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2017-06-13 14:56:58 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-06-13 14:56:58 +0100
commit9e883790dd0da73269e3d9f4c250d14ff7ff2d34 (patch)
tree746833c82220cc1775d29d8f2ca533d4add71dae /hw
parent310150c000800dc47d7b5db0e02b2e517d13886e (diff)
downloadqemu-9e883790dd0da73269e3d9f4c250d14ff7ff2d34.zip
qemu-9e883790dd0da73269e3d9f4c250d14ff7ff2d34.tar.gz
qemu-9e883790dd0da73269e3d9f4c250d14ff7ff2d34.tar.bz2
hw/arm/exynos: Use type define instead of hard-coded a9mpcore_priv string
Use a define for a9mpcore_priv device type name instead of hard-coded string. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/arm/exynos4210.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/arm/exynos4210.c b/hw/arm/exynos4210.c
index 27a7bf2..0050626 100644
--- a/hw/arm/exynos4210.c
+++ b/hw/arm/exynos4210.c
@@ -26,6 +26,7 @@
#include "qemu-common.h"
#include "qemu/log.h"
#include "cpu.h"
+#include "hw/cpu/a9mpcore.h"
#include "hw/boards.h"
#include "sysemu/sysemu.h"
#include "hw/sysbus.h"
@@ -211,7 +212,7 @@ Exynos4210State *exynos4210_init(MemoryRegion *system_mem)
}
/* Private memory region and Internal GIC */
- dev = qdev_create(NULL, "a9mpcore_priv");
+ dev = qdev_create(NULL, TYPE_A9MPCORE_PRIV);
qdev_prop_set_uint32(dev, "num-cpu", EXYNOS4210_NCPUS);
qdev_init_nofail(dev);
busdev = SYS_BUS_DEVICE(dev);