From 4c7daa29021533b2b8090b22980ace7990448a4e Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Wed, 12 Aug 2026 09:07:48 +0200 Subject: [PATCH] fixes clk_if initialization of ISS SC wrapper --- src/sysc/core_complex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysc/core_complex.cpp b/src/sysc/core_complex.cpp index ec52b59..bcab159 100644 --- a/src/sysc/core_complex.cpp +++ b/src/sysc/core_complex.cpp @@ -170,7 +170,6 @@ void core_complex::create_cpu(std::string const& type, std::string SCCFATAL() << "Could not create vm for isa " << type << " and backend " << backend; } else { core->set_hartid(hart_id); - core->set_clk_if(clk_i.get_interface(0)); core->set_clint_irq_count(clint_irq_i.size()); auto* srv = debugger::server::get(); if(srv) @@ -313,6 +312,7 @@ template void core_complex::s sc_core::sc_stop(); return; } + core->set_clk_if(clk_i.get_interface(0)); if(GET_PROP_VALUE(elf_file).size() > 0) { auto file_names = util::split(GET_PROP_VALUE(elf_file), ','); for(auto& s : file_names) {