mirror of https://github.com/xemu-project/xemu.git
hw/arm/musicpal: Simplify since the machines are little-endian only
We only build the little-endian softmmu configurations. Checking for big endian is pointless, remove the unused code. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
56329e38e6
commit
98335f6179
|
@ -1645,22 +1645,12 @@ static void musicpal_init(MachineState *machine)
|
||||||
* 0xFF800000 (if there is 8 MB flash). So remap flash access if the
|
* 0xFF800000 (if there is 8 MB flash). So remap flash access if the
|
||||||
* image is smaller than 32 MB.
|
* image is smaller than 32 MB.
|
||||||
*/
|
*/
|
||||||
#ifdef TARGET_WORDS_BIGENDIAN
|
|
||||||
pflash_cfi02_register(0x100000000ULL - MP_FLASH_SIZE_MAX,
|
|
||||||
"musicpal.flash", flash_size,
|
|
||||||
blk, 0x10000,
|
|
||||||
MP_FLASH_SIZE_MAX / flash_size,
|
|
||||||
2, 0x00BF, 0x236D, 0x0000, 0x0000,
|
|
||||||
0x5555, 0x2AAA, 1);
|
|
||||||
#else
|
|
||||||
pflash_cfi02_register(0x100000000ULL - MP_FLASH_SIZE_MAX,
|
pflash_cfi02_register(0x100000000ULL - MP_FLASH_SIZE_MAX,
|
||||||
"musicpal.flash", flash_size,
|
"musicpal.flash", flash_size,
|
||||||
blk, 0x10000,
|
blk, 0x10000,
|
||||||
MP_FLASH_SIZE_MAX / flash_size,
|
MP_FLASH_SIZE_MAX / flash_size,
|
||||||
2, 0x00BF, 0x236D, 0x0000, 0x0000,
|
2, 0x00BF, 0x236D, 0x0000, 0x0000,
|
||||||
0x5555, 0x2AAA, 0);
|
0x5555, 0x2AAA, 0);
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
sysbus_create_simple(TYPE_MV88W8618_FLASHCFG, MP_FLASHCFG_BASE, NULL);
|
sysbus_create_simple(TYPE_MV88W8618_FLASHCFG, MP_FLASHCFG_BASE, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue