From aa2622b1f511db1244e343b1e6a22c7db72e3efd Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 18 May 2021 11:36:19 +0200 Subject: [PATCH] software/liblitedram: Add missing #ifdef SDRAM_DEBUG to fix compilation with large DRAMs. sdram_dbg seems to have current limitations: "At most 32 databits SDR or 16 databits DDR supported". --- litex/soc/software/liblitedram/sdram_dbg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litex/soc/software/liblitedram/sdram_dbg.c b/litex/soc/software/liblitedram/sdram_dbg.c index c77afcd91..e0efa8cc9 100644 --- a/litex/soc/software/liblitedram/sdram_dbg.c +++ b/litex/soc/software/liblitedram/sdram_dbg.c @@ -3,6 +3,8 @@ #include #include +#ifdef SDRAM_DEBUG + void error_stats_init(struct error_stats *stats) { memset(stats, 0, sizeof(struct error_stats)); } @@ -85,3 +87,5 @@ int readback_compare(struct readback *readback, struct readback *other, int verb } return missing; } + +#endif \ No newline at end of file