Merge branch 'develop'
This commit is contained in:
		| @@ -30,7 +30,17 @@ set(LIBRARY_NAME platform) | ||||
| #add_definitions(-DSC_DEFAULT_WRITER_POLICY=SC_MANY_WRITERS) | ||||
|  | ||||
| # Define the library | ||||
| add_library(${LIBRARY_NAME} ${LIB_SOURCES}) | ||||
| add_library(${LIBRARY_NAME} SHARED ${LIB_SOURCES}) | ||||
|  | ||||
| # Links the target exe against the libraries | ||||
| target_link_libraries(${LIBRARY_NAME} riscv_sc) | ||||
| target_link_libraries(${LIBRARY_NAME} dbt-core) | ||||
| target_link_libraries(${LIBRARY_NAME} softfloat) | ||||
| target_link_libraries(${LIBRARY_NAME} sc-components) | ||||
| target_link_libraries(${LIBRARY_NAME} ${CONAN_LIBS_SEASOCKS}) | ||||
| target_link_libraries(${LIBRARY_NAME} external) | ||||
| target_link_libraries(${LIBRARY_NAME} ${llvm_libs}) | ||||
| target_link_libraries(${LIBRARY_NAME} ${Boost_LIBRARIES} ) | ||||
|  | ||||
| set_target_properties(${LIBRARY_NAME} PROPERTIES | ||||
|   VERSION ${VERSION}  # ${VERSION} was defined in the main CMakeLists. | ||||
| @@ -61,8 +71,7 @@ add_executable(${APPLICATION_NAME} ${APP_SOURCES}) | ||||
| target_include_directories(${APPLICATION_NAME} SYSTEM PRIVATE ${LLVM_INCLUDE_DIRS}) | ||||
| # Links the target exe against the libraries | ||||
| target_link_libraries(${APPLICATION_NAME} ${LIBRARY_NAME}) | ||||
| target_link_libraries(${APPLICATION_NAME} riscv.sc) | ||||
| target_link_libraries(${APPLICATION_NAME} riscv) | ||||
| target_link_libraries(${APPLICATION_NAME} riscv_sc) | ||||
| target_link_libraries(${APPLICATION_NAME} dbt-core) | ||||
| target_link_libraries(${APPLICATION_NAME} softfloat) | ||||
| target_link_libraries(${APPLICATION_NAME} sc-components) | ||||
|   | ||||
| @@ -32,7 +32,6 @@ | ||||
|  | ||||
| #include "CLIParser.h" | ||||
| #include <sysc/top/system.h> | ||||
| #include <iss/jit/jit_helper.h> | ||||
| #include <iss/log_categories.h> | ||||
|  | ||||
| #include <scc/configurable_tracer.h> | ||||
| @@ -45,6 +44,7 @@ | ||||
| #include <cci_utils/broker.h> | ||||
|  | ||||
| #include <boost/program_options.hpp> | ||||
| #include <iss/llvm/jit_helper.h> | ||||
| #include <fstream> | ||||
| #include <sstream> | ||||
|  | ||||
|   | ||||
| @@ -83,13 +83,13 @@ fe310::fe310(sc_core::sc_module_name nm) | ||||
|     size_t i = 0; | ||||
|     for (const auto &e : e300_plat_t_map) { | ||||
|         i_router->initiator.at(i)(e.target); | ||||
|         i_router->add_target_range(i, e.start, e.size); | ||||
|         i_router->set_target_range(i, e.start, e.size); | ||||
|         i++; | ||||
|     } | ||||
|     i_router->initiator.at(i)(i_mem_qspi->target); | ||||
|     i_router->add_target_range(i, 0x20000000, 512_MB); | ||||
|     i_router->set_target_range(i, 0x20000000, 512_MB); | ||||
|     i_router->initiator.at(++i)(i_mem_ram->target); | ||||
|     i_router->add_target_range(i, 0x80000000, 128_kB); | ||||
|     i_router->set_target_range(i, 0x80000000, 128_kB); | ||||
|  | ||||
|     i_uart0->clk_i(s_tlclk); | ||||
|     i_uart1->clk_i(s_tlclk); | ||||
|   | ||||
| @@ -50,7 +50,7 @@ plic::plic(sc_core::sc_module_name nm) | ||||
| { | ||||
|     regs->registerResources(*this); | ||||
|     // register callbacks | ||||
|     regs->claim_complete.set_write_cb([this](scc::sc_register<uint32_t> reg, uint32_t v, sc_core::sc_time d) -> bool { | ||||
|     regs->claim_complete.set_write_cb([this](scc::sc_register<uint32_t>& reg, uint32_t v, sc_core::sc_time d) -> bool { | ||||
|         reg.put(v); | ||||
|         reset_pending_int(v); | ||||
|         // std::cout << "Value of register: 0x" << std::hex << reg << std::endl; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user