adds TSAN/ASAN buid settings

This commit is contained in:
2025-11-09 20:19:54 +01:00
parent 687c544ccb
commit bd032c08ce
14 changed files with 48 additions and 22 deletions

View File

@@ -1,8 +1,5 @@
message(STATUS "SC_VERSION is ${SC_VERSION_MAJOR}.${SC_VERSION_MINOR}.${SC_VERSION_PATCH}")
if(SC_VERSION_MAJOR GREATER 2)
add_executable (quantum_keeper_mt
sc_main.cpp
)
add_executable (quantum_keeper_mt sc_main.cpp)
target_link_libraries (quantum_keeper_mt LINK_PUBLIC scc-sysc)
add_test(NAME quantum_keeper_mt COMMAND quantum_keeper_mt)
endif()

View File

@@ -27,7 +27,7 @@ struct initiator : ::sc_core ::sc_module {
SC_THREAD(run);
}
~initiator() {}
~initiator() = default;
private:
void run() {
@@ -79,7 +79,7 @@ struct top_module : ::sc_core ::sc_module {
SC_THREAD(run);
}
~top_module() {}
~top_module() = default;
void b_transport(tlm::tlm_generic_payload& gp, sc_core::sc_time& t) {
SCCDEBUG(SCMOD) << "Received b_transport call at local time " << t;