From 6c838cedcdc4eaf0649dde8e650f7c26ba729afd Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Tue, 15 Sep 2020 14:44:10 -0400 Subject: [PATCH] libbase/sim_debug: wrap markers variables within appropriate #ifdef --- litex/soc/software/libbase/sim_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex/soc/software/libbase/sim_debug.c b/litex/soc/software/libbase/sim_debug.c index 9fff65026..d7644b90d 100644 --- a/litex/soc/software/libbase/sim_debug.c +++ b/litex/soc/software/libbase/sim_debug.c @@ -6,8 +6,10 @@ // 0 is used as no marker #define MAX_N_MARKERS (255 - 1) +#ifdef CSR_SIM_MARKER_BASE static int n_markers = 0; static const char *markers[MAX_N_MARKERS] = {0}; +#endif void sim_mark(const char *text) { #ifdef CSR_SIM_MARKER_BASE