From patchwork Tue Sep 8 13:41:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Rossi X-Patchwork-Id: 515421 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 04012140273 for ; Wed, 9 Sep 2015 00:29:09 +1000 (AEST) Received: from localhost ([::1]:34811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZJtT-0001AB-7V for incoming@patchwork.ozlabs.org; Tue, 08 Sep 2015 10:29:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZJ9Q-0004s5-By for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:41:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZJ9L-0006a5-VJ for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:41:31 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZJ9L-0006Zc-PS for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:41:27 -0400 Received: by pacex6 with SMTP id ex6so124721786pac.0 for ; Tue, 08 Sep 2015 06:41:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SxpCIfnX8XmOiTgXIs2CIqxF4rO7CQUf228kUfc6n/4=; b=XYD4r0udhhjtnJTryRIL58jUNuycpqpRa3PB5X1lFtkQ2m6Tt+4//YTfMYH6HxtlvK /TseNZwr02OPy6Cku3y6ULZp8eqvufmzwf8jzh3zcb0yZ/aPsKsKWpsPGpIloG8JfOS/ QhyUUPFI7lYxt9FcQvfMF5xjw9VOC+XW5a92cXuvUvn0Retaryn3GlYvrhdRbi512P26 frlni0KB1IHW/vRigrbxDIetfWK+ts5cz9UWqhgRLCwxheOoeWXQAYlGzVpqc0JwKmqs 050aVjuypvtcVKEtryeBidU698iClGEowoK1LaZvuAIQ9WBrjn8+A+xYW84doT9e0JmT 9j1g== X-Gm-Message-State: ALoCoQnq7fhicg4ZeNJvUGO4WcCjNMG4BZ1i5YCQPxOHyL5WgPeHiY4aJJzsl0yAU5CJS8y0jwd5 X-Received: by 10.68.254.99 with SMTP id ah3mr57857029pbd.15.1441719686378; Tue, 08 Sep 2015 06:41:26 -0700 (PDT) Received: from nathanbox.home.gateway ([103.26.61.212]) by smtp.gmail.com with ESMTPSA id nj9sm3512957pdb.77.2015.09.08.06.41.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Sep 2015 06:41:22 -0700 (PDT) From: Nathan Rossi To: qemu-devel@nongnu.org Date: Tue, 8 Sep 2015 23:41:12 +1000 Message-Id: <1441719672-25296-1-git-send-email-nathan@nathanrossi.com> X-Mailer: git-send-email 2.5.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.53 X-Mailman-Approved-At: Tue, 08 Sep 2015 10:27:03 -0400 Cc: "Edgar E . Iglesias" , Nathan Rossi Subject: [Qemu-devel] [PATCH] arm: xlnx-zynqmp: Fix up GIC region size 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 GIC in ZynqMP cover a 64K address space, however the actual registers are decoded within a 4K address space and mirrored at the 4K boundaries. This change fixes the defined size for these regions as it was set to 0x4000/16K incorrectly. Signed-off-by: Nathan Rossi Reviewed-by: Edgar E. Iglesias --- include/hw/arm/xlnx-zynqmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zynqmp.h index 6ccb57b..23b8453 100644 --- a/include/hw/arm/xlnx-zynqmp.h +++ b/include/hw/arm/xlnx-zynqmp.h @@ -44,7 +44,7 @@ * number of memory region aliases. */ -#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x4000 +#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x1000 #define XLNX_ZYNQMP_GIC_ALIASES (0x10000 / XLNX_ZYNQMP_GIC_REGION_SIZE - 1) typedef struct XlnxZynqMPState {