From 5ea3bae03609e472e7e4ab90d29cfdb94653798d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 13 May 2020 08:44:17 +0200 Subject: [PATCH] bios/boot: review/fix #503. - copy_image_from_flash_to_ram is now used by all CPUs. - copy_image_from_flash_to_ram already show the flash address, no need to duplicate it. --- litex/soc/software/bios/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index c2fa4492..795b7b3a 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -399,7 +399,7 @@ static unsigned int check_image_in_flash(unsigned int base_address) return length; } -#if defined(MAIN_RAM_BASE) && defined(CONFIG_CPU_TYPE_VEXRISCV) && defined(FLASH_BOOT_ADDRESS) +#if defined(MAIN_RAM_BASE) && defined(FLASH_BOOT_ADDRESS) static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned int ram_address) { unsigned int length; @@ -469,7 +469,7 @@ void flashboot(void) } #endif - printf("Booting from flash addr 0x%08x...\n", FLASH_BOOT_ADDRESS); + printf("Booting from flash...\n"); length = check_image_in_flash(FLASH_BOOT_ADDRESS); if(!length) return; -- 2.30.2