libbase/sim_debug: wrap markers variables within appropriate #ifdef

This commit is contained in:
Gabriel Somlo 2020-09-15 14:44:10 -04:00
parent e2719d4d71
commit 6c838cedcd
1 changed files with 2 additions and 0 deletions

View File

@ -6,8 +6,10 @@
// 0 is used as no marker // 0 is used as no marker
#define MAX_N_MARKERS (255 - 1) #define MAX_N_MARKERS (255 - 1)
#ifdef CSR_SIM_MARKER_BASE
static int n_markers = 0; static int n_markers = 0;
static const char *markers[MAX_N_MARKERS] = {0}; static const char *markers[MAX_N_MARKERS] = {0};
#endif
void sim_mark(const char *text) { void sim_mark(const char *text) {
#ifdef CSR_SIM_MARKER_BASE #ifdef CSR_SIM_MARKER_BASE