From 12b27f961ccfa8bab107545451f78edd33d1b1e9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 19 May 2021 11:05:51 +0200 Subject: [PATCH] software/liblitedram: Fix compilation on designs without SDRAM. --- litex/soc/software/liblitedram/sdram_dbg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litex/soc/software/liblitedram/sdram_dbg.h b/litex/soc/software/liblitedram/sdram_dbg.h index 470ff26e6..830ef9320 100644 --- a/litex/soc/software/liblitedram/sdram_dbg.h +++ b/litex/soc/software/liblitedram/sdram_dbg.h @@ -1,6 +1,10 @@ #ifndef __SDRAM_DBG_H #define __SDRAM_DBG_H +#include + +#ifdef CSR_SDRAM_BASE + #include struct memory_error { @@ -48,4 +52,6 @@ int readback_add(struct readback *readback, unsigned int max_len, struct memory_ // Print errors that occured in `readback` that didn't occure in `other`. Returns number of errors. int readback_compare(struct readback *readback, struct readback *other, int verbose); +#endif /* CSR_SDRAM_BASE */ + #endif /* __SDRAM_DBG_H */