musicpal: Fix flash mapping
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>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
ce6c760c37
commit
0c267217ca
@ -1583,7 +1583,7 @@ static void musicpal_init(ram_addr_t ram_size,
|
|||||||
* image is smaller than 32 MB.
|
* image is smaller than 32 MB.
|
||||||
*/
|
*/
|
||||||
#ifdef TARGET_WORDS_BIGENDIAN
|
#ifdef TARGET_WORDS_BIGENDIAN
|
||||||
pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, NULL,
|
pflash_cfi02_register(0x100000000ULL-MP_FLASH_SIZE_MAX, NULL,
|
||||||
"musicpal.flash", flash_size,
|
"musicpal.flash", flash_size,
|
||||||
dinfo->bdrv, 0x10000,
|
dinfo->bdrv, 0x10000,
|
||||||
(flash_size + 0xffff) >> 16,
|
(flash_size + 0xffff) >> 16,
|
||||||
@ -1591,7 +1591,7 @@ static void musicpal_init(ram_addr_t ram_size,
|
|||||||
2, 0x00BF, 0x236D, 0x0000, 0x0000,
|
2, 0x00BF, 0x236D, 0x0000, 0x0000,
|
||||||
0x5555, 0x2AAA, 1);
|
0x5555, 0x2AAA, 1);
|
||||||
#else
|
#else
|
||||||
pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, NULL,
|
pflash_cfi02_register(0x100000000ULL-MP_FLASH_SIZE_MAX, NULL,
|
||||||
"musicpal.flash", flash_size,
|
"musicpal.flash", flash_size,
|
||||||
dinfo->bdrv, 0x10000,
|
dinfo->bdrv, 0x10000,
|
||||||
(flash_size + 0xffff) >> 16,
|
(flash_size + 0xffff) >> 16,
|
||||||
|
Loading…
Reference in New Issue
Block a user