Skip to content

Commit 3c8aa48

Browse files
quic-egmceyck
authored andcommitted
core_complex: add register_unknown_instr_handler
1 parent a091d73 commit 3c8aa48

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sysc/core_complex.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ class core_complex : public sc_core::sc_module, public scc::traceable, public co
226226
core->register_csr_wr(csr_addr, func);
227227
}
228228

229+
void register_unknown_instr_handler(util::delegate<iss::arch_if::unknown_instr_cb_t> handler) {
230+
assert(core != nullptr);
231+
core->register_unknown_instr_handler(handler);
232+
}
233+
229234
protected:
230235
void create_cpu(std::string const& type, std::string const& backend, unsigned gdb_port, uint32_t hart_id);
231236
int cmd_sysc(int argc, char* argv[], iss::debugger::out_func, iss::debugger::data_func, iss::debugger::target_adapter_if*);

0 commit comments

Comments
 (0)