1
0
mirror of synced 2026-04-27 04:38:25 +00:00

Made "cover" a compile-time option (disabled by default)

This commit is contained in:
Clifford Wolf
2014-11-06 09:39:55 +01:00
parent 80869531b9
commit a346c0bf2b
5 changed files with 10 additions and 6 deletions

View File

@@ -87,8 +87,7 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
// This is the magic behind the code coverage counters
// ---------------------------------------------------
#if defined(__linux__) && !defined(NDEBUG)
#define COVER_ACTIVE
#ifdef YOSYS_ENABLE_COVER
#define cover(_id) do { \
static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1))) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \