From patchwork Mon Jan 20 00:09:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 312426 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E167F2C0079 for ; Mon, 20 Jan 2014 11:10:56 +1100 (EST) Received: from localhost ([::1]:48147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W52S6-0000ag-CS for incoming@patchwork.ozlabs.org; Sun, 19 Jan 2014 19:10:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W52RF-0000O2-Ge for qemu-devel@nongnu.org; Sun, 19 Jan 2014 19:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W52R9-0003tO-N9 for qemu-devel@nongnu.org; Sun, 19 Jan 2014 19:10:01 -0500 Received: from mail-qe0-x231.google.com ([2607:f8b0:400d:c02::231]:54985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W52R9-0003tK-In for qemu-devel@nongnu.org; Sun, 19 Jan 2014 19:09:55 -0500 Received: by mail-qe0-f49.google.com with SMTP id w4so5773041qeb.22 for ; Sun, 19 Jan 2014 16:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=bH80P6jxOL3iRvPTfGs/WeL5Sie54hT46bQaZzLWyZ4=; b=YL4hvxIw4/95GzHwJFU2Xlr2ObanMZc16RYH+jGWUJ23kxNNWM1S0Dm6v5ZI6FwOLo F+K7B9AOY+glz4iIUSh6BHCDy01jtmAvGczRVHPyUVrZqw3IBM3zhNwFUAVfGSi1ljXf Di+CwRk3KJrYKlIiXrNepzeSA3quMndiXgAZ0YiBC4mF0+slWYu2i69fBdY4EMWXWhuT zwMj22X83MNvnJWolL38rQecflT5D2eCJ1yllIZRpbuPML9QZHqlL79bRlRSizc0niiI YyrZSlF7Ck7y7pE9maT5m4ZfwXvQzfnuek1MS85XDdeSuJHZlzmKqINonOnCBKIF9lxc Xkyg== X-Received: by 10.224.34.136 with SMTP id l8mr23376260qad.101.1390176595270; Sun, 19 Jan 2014 16:09:55 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id oz3sm25535539qeb.3.2014.01.19.16.09.54 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 19 Jan 2014 16:09:54 -0800 (PST) From: Alistair Francis To: qemu-devel@nongnu.org Date: Mon, 20 Jan 2014 10:09:51 +1000 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c02::231 Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH arm-midr v3 2/2] ZYNQ: Implement board MIDR control for Zynq 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 This patch uses the fact that the midr variable is now a property This patch sets the midr variable to the boards custom midr Signed-off-by: Alistair Francis --- hw/arm/xilinx_zynq.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c index 98e0958..9ee21e7 100644 --- a/hw/arm/xilinx_zynq.c +++ b/hw/arm/xilinx_zynq.c @@ -37,6 +37,7 @@ #define IRQ_OFFSET 32 /* pic interrupts start from index 32 */ #define MPCORE_PERIPHBASE 0xF8F00000 +#define ZYNQ_BOARD_MIDR 0x413FC090 static const int dma_irqs[8] = { 46, 47, 48, 49, 72, 73, 74, 75 @@ -125,6 +126,12 @@ static void zynq_init(QEMUMachineInitArgs *args) cpu = ARM_CPU(object_new(object_class_get_name(cpu_oc))); + object_property_set_int(OBJECT(cpu), ZYNQ_BOARD_MIDR, "midr", &err); + if (err) { + error_report("%s", error_get_pretty(err)); + exit(1); + } + object_property_set_int(OBJECT(cpu), MPCORE_PERIPHBASE, "reset-cbar", &err); if (err) { error_report("%s", error_get_pretty(err));