diff --git a/gen_input/templates/CORENAME_sysc.cpp.gtl b/gen_input/templates/CORENAME_sysc.cpp.gtl index 21cff46..6b23d0a 100644 --- a/gen_input/templates/CORENAME_sysc.cpp.gtl +++ b/gen_input/templates/CORENAME_sysc.cpp.gtl @@ -45,17 +45,17 @@ namespace interp { using namespace sysc; volatile std::array ${coreDef.name.toLowerCase()}_init = { iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|m_p|interp", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; }), iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p|interp", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%if(coreDef.name.toLowerCase()=="tgc5d" || coreDef.name.toLowerCase()=="tgc5e") {%>, iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p_clic_pmp|interp", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%}%> @@ -66,17 +66,17 @@ namespace llvm { using namespace sysc; volatile std::array ${coreDef.name.toLowerCase()}_init = { iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|m_p|llvm", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; }), iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p|llvm", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%if(coreDef.name.toLowerCase()=="tgc5d" || coreDef.name.toLowerCase()=="tgc5e") {%>, iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p_clic_pmp|llvm", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%}%> @@ -88,17 +88,17 @@ namespace tcc { using namespace sysc; volatile std::array ${coreDef.name.toLowerCase()}_init = { iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|m_p|tcc", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; }), iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p|tcc", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%if(coreDef.name.toLowerCase()=="tgc5d" || coreDef.name.toLowerCase()=="tgc5e") {%>, iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p_clic_pmp|tcc", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%}%> @@ -110,17 +110,17 @@ namespace asmjit { using namespace sysc; volatile std::array ${coreDef.name.toLowerCase()}_init = { iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|m_p|asmjit", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; }), iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p|asmjit", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%if(coreDef.name.toLowerCase()=="tgc5d" || coreDef.name.toLowerCase()=="tgc5e") {%>, iss_factory::instance().register_creator("${coreDef.name.toLowerCase()}|mu_p_clic_pmp|asmjit", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto* cc = reinterpret_cast(data); + auto* cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })<%}%> diff --git a/src/sysc/register_tgc_c.cpp b/src/sysc/register_tgc_c.cpp index d2c3c49..806b874 100644 --- a/src/sysc/register_tgc_c.cpp +++ b/src/sysc/register_tgc_c.cpp @@ -62,12 +62,12 @@ using namespace sysc; volatile std::array tgc_init = { iss_factory::instance().register_creator("tgc5c|m_p|llvm", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto cc = reinterpret_cast(data); + auto cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; }), iss_factory::instance().register_creator("tgc5c|mu_p|llvm", [](unsigned gdb_port, void* data) -> iss_factory::base_t { - auto cc = reinterpret_cast(data); + auto cc = reinterpret_cast(data); auto* cpu = new sc_core_adapter>(cc); return {sysc::sc_cpu_ptr{cpu}, vm_ptr{create(static_cast(cpu), gdb_port)}}; })};