From 22d454efcd94a321e557f3bc76463a8057d7d196 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sun, 16 Dec 2018 14:40:10 -0800 Subject: [PATCH] Hack to fix #136. --- litex/soc/software/bios/sdram.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.30.2