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".
This commit is contained in:
Florent Kermarrec 2021-05-18 11:36:19 +02:00
parent beac24b796
commit aa2622b1f5
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#ifdef SDRAM_DEBUG
void error_stats_init(struct error_stats *stats) { void error_stats_init(struct error_stats *stats) {
memset(stats, 0, sizeof(struct error_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; return missing;
} }
#endif