From: Tim 'mithro' Ansell Date: Sun, 16 Dec 2018 22:40:10 +0000 (-0800) Subject: Hack to fix #136. X-Git-Tag: 24jan2021_ls180~1438^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22d454efcd94a321e557f3bc76463a8057d7d196;p=litex.git Hack to fix #136. --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index 52532aa4..fbd9afa8 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -12,6 +12,11 @@ #include "sdram.h" +// FIXME(hack): If we don't have main ram, just target the sram instead. +#ifndef MAIN_RAM_BASE +#define MAIN_RAM_BASE SRAM_BASE +#endif + static void cdelay(int i) { while(i > 0) {