qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] musicpal: Fix flash mapping
@ 2012-09-06 23:03 Jan Kiszka
  2012-09-07 14:41 ` Peter Maydell
  0 siblings, 1 reply; 11+ messages in thread
From: Jan Kiszka @ 2012-09-06 23:03 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel, qemu-stable

The old arithmetic assumed 32 physical address bits which is no longer
true for ARM since 3cc0cd61f4.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
---
 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,
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-08 10:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 23:03 [Qemu-devel] [PATCH] musicpal: Fix flash mapping Jan Kiszka
2012-09-07 14:41 ` Peter Maydell
2012-09-07 14:53   ` Jan Kiszka
2012-09-07 15:25     ` Peter Maydell
2012-09-08  8:44       ` Blue Swirl
2012-09-08  8:50         ` Jan Kiszka
2012-09-08  9:48           ` [Qemu-devel] [PATCH v2] " Jan Kiszka
2012-09-08  9:50             ` Peter Maydell
2012-09-08  9:51               ` Jan Kiszka
2012-09-08  9:52             ` [Qemu-devel] [PATCH v2a] " Jan Kiszka
2012-09-08 10:19               ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).