From patchwork Tue Jun 13 14:06:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 105371 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp439948qgd; Tue, 13 Jun 2017 07:41:11 -0700 (PDT) X-Received: by 10.55.221.220 with SMTP id u89mr246234qku.236.1497364871378; Tue, 13 Jun 2017 07:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497364871; cv=none; d=google.com; s=arc-20160816; b=ZW0dAShuxzJ5ugQweFvQtJaD1sYOoRAbKrQDoWszfW/zQ68zYQ4cg2e5zOqgamyfZp fLtmHs8xqyeX/C93W2lIaK8APA6riTVVfv8BtSMCF36popZZrR/nyg2ixIH4k0IDLk3E WGBYPQAxhVZvG8HrVs7aRLB8RFBCibthjGeETQuDH6/aUnJP4yTR1nG3saAiGV+6lqSc pjDmUNESsyYBIj5mReVnVHAyIJApMltSIutMkqJaInjwZKAJkPIi9Ods8eKA+OjEEPZn XLBYZaqpZ/C4iHBYnRW8AfOkWBG+MCd/PkoltnKp+g6YTno52ux3E30UIky84bkUhEuk 8ioA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:arc-authentication-results; bh=orxIsyuQkY9mZODw8/6bo+fX7GYlT8ZbfMmeJo1Pv9g=; b=oLGCDHNoW4jv74OAdLt+xm5q23DLMl0qjTHrxlrAkdZ/dm4reeTuqNt+hPQIB8Rsgw h3SpOb/OG95pjWw/JJ4MSpjSPiI86HSQAdUkBGkr7L2z2Ztz+aW+R2zld06TygypIrkt DAooKQiwvCOPjenpaD9rNwbonJhBliM4TDdii5bayjJ3HOS0gcQBIcL8/Oeivxcmad9J R0WKdLNLo54llG5m4x7WgFr78GNNxpB5Zu+GWreOmdqBXVKeCz4Cq/b0C2ifW1mZyJBQ /mtv4dw/gM3rFKg00r2mVDvYFdAHpFdcV41J2l0aq3wdp8mKUBue+5xmAAWeHmFsaEbK zy6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i31si86252qtc.198.2017.06.13.07.41.11 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 13 Jun 2017 07:41:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKn0H-0006nN-3T for patch@linaro.org; Tue, 13 Jun 2017 10:41:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKmTl-0005Q5-J6 for qemu-devel@nongnu.org; Tue, 13 Jun 2017 10:07:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKmTc-0006iM-9c for qemu-devel@nongnu.org; Tue, 13 Jun 2017 10:07:33 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:37257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dKmTc-0006cz-2E for qemu-devel@nongnu.org; Tue, 13 Jun 2017 10:07:24 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1dKmTQ-000136-Ox for qemu-devel@nongnu.org; Tue, 13 Jun 2017 15:07:12 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 13 Jun 2017 15:06:56 +0100 Message-Id: <1497362826-21125-8-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497362826-21125-1-git-send-email-peter.maydell@linaro.org> References: <1497362826-21125-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 07/17] hw/arm/exynos: Use type define instead of hard-coded a9mpcore_priv string X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Krzysztof Kozlowski Use a define for a9mpcore_priv device type name instead of hard-coded string. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Peter Maydell --- hw/arm/exynos4210.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 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);