update latest version of SCC
This commit is contained in:
		| @@ -15,7 +15,7 @@ include(Common) | ||||
| list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) | ||||
|  | ||||
| find_package(Threads) | ||||
| find_package(SystemC REQUIRED) | ||||
| find_package(OSCISystemC REQUIRED) | ||||
| find_package(ZLIB) | ||||
| if(SystemC_FOUND) | ||||
|     include_directories(${SystemC_INCLUDE_DIRS}) | ||||
|   | ||||
| @@ -13,11 +13,11 @@ add_executable (simple_system | ||||
| # Link the executable to the sc_components library. Since the sc_components library has | ||||
| # public include directories we will use those link directories when building | ||||
| # simple_system | ||||
| target_link_libraries (simple_system LINK_PUBLIC sc-components) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${SystemC_LIBRARIES}) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${SCV_LIBRARIES}) | ||||
| target_link_libraries (simple_system LINK_PUBLIC scc) | ||||
| #target_link_libraries (simple_system LINK_PUBLIC ${SystemC_LIBRARIES}) | ||||
| #target_link_libraries (simple_system LINK_PUBLIC ${SCV_LIBRARIES}) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${Boost_LIBRARIES} ) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${CONAN_LIBS_LEVELDB}) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT}) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${ZLIB_LIBRARY}) | ||||
| target_link_libraries (simple_system LINK_PUBLIC ${CMAKE_DL_LIBS}) | ||||
| #target_link_libraries (simple_system LINK_PUBLIC ${CONAN_LIBS_LEVELDB}) | ||||
| #target_link_libraries (simple_system LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT}) | ||||
| #target_link_libraries (simple_system LINK_PUBLIC ${ZLIB_LIBRARY}) | ||||
| #target_link_libraries (simple_system LINK_PUBLIC ${CMAKE_DL_LIBS}) | ||||
|   | ||||
| @@ -39,11 +39,6 @@ const size_t ERROR_UNHANDLED_EXCEPTION = 2; | ||||
| } // namespace | ||||
|  | ||||
| int sc_main(int argc, char *argv[]) { | ||||
|     /////////////////////////////////////////////////////////////////////////// | ||||
|     // setup initial logging | ||||
|     ///////////////////////////////////////////////////////////////////////////       LOGGER(DEFAULT)::reporting_level() = l; | ||||
|     LOGGER(DEFAULT)::reporting_level() = logging::INFO; | ||||
|     LOGGER(SystemC)::reporting_level() = logging::INFO; | ||||
|     /////////////////////////////////////////////////////////////////////////// | ||||
|     // CLI argument parsing | ||||
|     /////////////////////////////////////////////////////////////////////////// | ||||
|   | ||||
| @@ -7,11 +7,9 @@ add_executable (transaction_recording | ||||
| # Link the executable to the sc_components library. Since the sc_components library has | ||||
| # public include directories we will use those link directories when building | ||||
| # transaction_recording | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC sc-components) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC ${SystemC_LIBRARIES}) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC ${SCV_LIBRARIES}) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC ${Boost_LIBRARIES} ) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC ${CONAN_LIBS_LEVELDB}) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC ${ZLIB_LIBRARIES} ) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT}) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC ${CMAKE_DL_LIBS}) | ||||
| target_link_libraries (transaction_recording LINK_PUBLIC scc) | ||||
| #target_link_libraries (transaction_recording LINK_PUBLIC ${Boost_LIBRARIES} ) | ||||
| #target_link_libraries (transaction_recording LINK_PUBLIC ${CONAN_LIBS_LEVELDB}) | ||||
| #target_link_libraries (transaction_recording LINK_PUBLIC ${ZLIB_LIBRARIES} ) | ||||
| #target_link_libraries (transaction_recording LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT}) | ||||
| #target_link_libraries (transaction_recording LINK_PUBLIC ${CMAKE_DL_LIBS}) | ||||
|   | ||||
| @@ -351,8 +351,7 @@ inline const char* init_db(char type){ | ||||
| int sc_main(int argc, char *argv[]) { | ||||
|     auto start = std::chrono::system_clock::now(); | ||||
|     scv_startup(); | ||||
|     scc::init_logging(logging::INFO); | ||||
|     LOGGER(SystemC)::print_time() = false; | ||||
|     scc::init_logging(scc::LogConfig().logLevel(logging::DEBUG)); | ||||
|     const char *fileName = argc==2? init_db(argv[1][0]): "my_db.txlog"; | ||||
|     if(argc<2) scv_tr_text_init(); | ||||
|     scv_tr_db db(fileName); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user