From patchwork Wed Nov 27 09:01:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 294522 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0352C2C00A6 for ; Wed, 27 Nov 2013 20:03:10 +1100 (EST) Received: from localhost ([::1]:34592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlb1X-0002KH-EH for incoming@patchwork.ozlabs.org; Wed, 27 Nov 2013 04:03:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlb0m-0001mH-Tj for qemu-devel@nongnu.org; Wed, 27 Nov 2013 04:02:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vlb0g-0002YU-NW for qemu-devel@nongnu.org; Wed, 27 Nov 2013 04:02:20 -0500 Received: from mail-pd0-f179.google.com ([209.85.192.179]:59331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vlb0g-0002YN-Fy for qemu-devel@nongnu.org; Wed, 27 Nov 2013 04:02:14 -0500 Received: by mail-pd0-f179.google.com with SMTP id r10so9592904pdi.10 for ; Wed, 27 Nov 2013 01:02:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=MKdcPMs4zu/EkH2PUOf2t0KGdzIoz1chmyjOw31p1iw=; b=abyL7X3EzfeTZxdMmwZEJeS6t9w5OfdEFrAcMY/+h//gajpeLfjEni2VIky83mUgiy IxT4INMhfrDLBV0rO9rB/BY8pRlbppGaD6r92ExQAN3GyYsPcDbZCNBRbhuYOGgSzOFE iFrMzcby84mZo6I8OcjJ4dFE8cBZewWKl/rVR7vTWOv0UHhV/xV8Aggvr/yo9OByIjsT 3tLJRLnFq3zKUKqTfUJ9TcvHyQcbRnB2DPBrrAkFse/8sI8hd7OvaCRHxOj7DapRfo2y RRfEWz58jpc6QAZo6jlA6mO/4KcrrY5JhENygeziotNd4M6CJ3LBi0qsoybwCNAW6Jj3 jQtQ== X-Gm-Message-State: ALoCoQnlGUI/LoNG4Hswanf82zDJqZFrNYM844MVIEmIoGwffwwoUxndzDmUPWFblzQDOg9UUbZK X-Received: by 10.66.227.39 with SMTP id rx7mr40838934pac.44.1385542933572; Wed, 27 Nov 2013 01:02:13 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id de1sm86370741pbc.7.2013.11.27.01.02.12 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 27 Nov 2013 01:02:12 -0800 (PST) From: Peter Crosthwaite To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Wed, 27 Nov 2013 01:01:41 -0800 Message-Id: X-Mailer: git-send-email 1.8.4.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.179 Cc: peter.crosthwaite@xilinx.com, afaerber@suse.de, mark.langsdorf@calxeda.com Subject: [Qemu-devel] [PATCH arm-devs v1 2/6] target-arm/cpu: Convert reset CBAR to a property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The reset Value of the CP15 CBAR is a vendor (machine) configurable property. Define arm_cpu_properties and add it. Signed-off-by: Peter Crosthwaite --- target-arm/cpu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index a82fa61..f1c5f6b 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -20,6 +20,7 @@ #include "cpu.h" #include "qemu-common.h" +#include "hw/qdev-properties.h" #if !defined(CONFIG_USER_ONLY) #include "hw/loader.h" #endif @@ -847,6 +848,11 @@ typedef struct ARMCPUInfo { void (*class_init)(ObjectClass *oc, void *data); } ARMCPUInfo; +static Property arm_cpu_properties[] = { + DEFINE_PROP_UINT32("cbar", ARMCPU, reset_cbar, 0), + DEFINE_PROP_END_OF_LIST(), +}; + static const ARMCPUInfo arm_cpus[] = { #if !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64) { .name = "arm926", .initfn = arm926_initfn }, @@ -895,6 +901,7 @@ static void arm_cpu_class_init(ObjectClass *oc, void *data) acc->parent_realize = dc->realize; dc->realize = arm_cpu_realizefn; + dc->props = arm_cpu_properties; acc->parent_reset = cc->reset; cc->reset = arm_cpu_reset;