From patchwork Sat Sep 8 09:48:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 182531 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 277512C009F for ; Sat, 8 Sep 2012 19:48:26 +1000 (EST) Received: from localhost ([::1]:35872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAHeK-0005CG-9d for incoming@patchwork.ozlabs.org; Sat, 08 Sep 2012 05:48:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAHeD-0005CB-UL for qemu-devel@nongnu.org; Sat, 08 Sep 2012 05:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAHeD-0006ya-03 for qemu-devel@nongnu.org; Sat, 08 Sep 2012 05:48:17 -0400 Received: from mout.web.de ([212.227.15.3]:61667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAHeC-0006yV-Mt; Sat, 08 Sep 2012 05:48:16 -0400 Received: from mchn199C.mchp.siemens.de ([95.157.56.37]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MbhFJ-1StZhw3yQX-00It7R; Sat, 08 Sep 2012 11:48:14 +0200 Message-ID: <504B145D.60103@web.de> Date: Sat, 08 Sep 2012 11:48:13 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Blue Swirl References: <50492BC5.4090107@web.de> <504A0A60.8090507@web.de> <504B06E0.6030100@web.de> In-Reply-To: <504B06E0.6030100@web.de> X-Enigmail-Version: 1.4.4 X-Provags-ID: V02:K0:oqr7FhP9OboztYL+KT9ppDEYT1CaiCdu1LZKUHOmMKM ZBF+/kOlDwvm44QY8a+Gc71ke2UG7PeLKtX5uu5sHqEgYAu/U2 oFOdfJuYHJ8bKkncO0euvn+ysjMTKeromTXgw2IYJYOSgE25dX YyXpr7u/UuQRULgCtBn5k5VhJoVUx8k8uXJsYYVDRENncuCYXS PZ9d/ybrg/RvQjUgJTltg== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.15.3 Cc: Peter Maydell , qemu-devel , qemu-stable Subject: [Qemu-devel] [PATCH v2] musicpal: Fix flash mapping 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 old arithmetic assumed 32 physical address bits which is no longer true for ARM since 3cc0cd61f4. Signed-off-by: Jan Kiszka --- Changes in v2: - mark large constant ULL hw/musicpal.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/musicpal.c b/hw/musicpal.c index ad725b5..10c2c16 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@ -1583,7 +1583,7 @@ static void musicpal_init(ram_addr_t ram_size, * image is smaller than 32 MB. */ #ifdef TARGET_WORDS_BIGENDIAN - pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, NULL, + pflash_cfi02_register(0x100000000-MP_FLASH_SIZE_MAX, NULL, "musicpal.flash", flash_size, dinfo->bdrv, 0x10000, (flash_size + 0xffff) >> 16, @@ -1591,7 +1591,7 @@ static void musicpal_init(ram_addr_t ram_size, 2, 0x00BF, 0x236D, 0x0000, 0x0000, 0x5555, 0x2AAA, 1); #else - pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, NULL, + pflash_cfi02_register(0x100000000-MP_FLASH_SIZE_MAX, NULL, "musicpal.flash", flash_size, dinfo->bdrv, 0x10000, (flash_size + 0xffff) >> 16,