Revision 5f9fc5ad hw/musicpal.c
b/hw/musicpal.c | ||
---|---|---|
1558 | 1558 |
* 0xFF800000 (if there is 8 MB flash). So remap flash access if the |
1559 | 1559 |
* image is smaller than 32 MB. |
1560 | 1560 |
*/ |
1561 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
1561 | 1562 |
pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, qemu_ram_alloc(flash_size), |
1562 | 1563 |
dinfo->bdrv, 0x10000, |
1563 | 1564 |
(flash_size + 0xffff) >> 16, |
1564 | 1565 |
MP_FLASH_SIZE_MAX / flash_size, |
1565 | 1566 |
2, 0x00BF, 0x236D, 0x0000, 0x0000, |
1566 |
0x5555, 0x2AAA); |
|
1567 |
0x5555, 0x2AAA, 1); |
|
1568 |
#else |
|
1569 |
pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, qemu_ram_alloc(flash_size), |
|
1570 |
dinfo->bdrv, 0x10000, |
|
1571 |
(flash_size + 0xffff) >> 16, |
|
1572 |
MP_FLASH_SIZE_MAX / flash_size, |
|
1573 |
2, 0x00BF, 0x236D, 0x0000, 0x0000, |
|
1574 |
0x5555, 0x2AAA, 0); |
|
1575 |
#endif |
|
1576 |
|
|
1567 | 1577 |
} |
1568 | 1578 |
sysbus_create_simple("mv88w8618_flashcfg", MP_FLASHCFG_BASE, NULL); |
1569 | 1579 |
|
Also available in: Unified diff