From bf4a6deb86f7626f08248e30a3e2cf03b330e488 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sun, 22 Oct 2023 23:19:09 +0200 Subject: [PATCH] fixes dump-ir handling --- src/sysc/core_complex.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sysc/core_complex.cpp b/src/sysc/core_complex.cpp index 78eb36e..0689b59 100644 --- a/src/sysc/core_complex.cpp +++ b/src/sysc/core_complex.cpp @@ -48,6 +48,7 @@ #include #include #include +#include #include #include @@ -126,7 +127,7 @@ public: core_wrapper(core_complex *owner) : owner(owner) { } void reset(uint64_t addr){vm->reset(addr);} - inline void start(){vm->start();} + inline void start(bool dump = false){vm->start(std::numeric_limits::max(), dump);} inline std::pair load_file(std::string const& name){ iss::arch_if* cc = cpu->get_arch_if(); return cc->load_file(name);}; @@ -379,7 +380,7 @@ void core_complex::run() { } quantum_keeper.reset(); cpu->set_interrupt_execution(false); - cpu->start(); + cpu->start(dump_ir); } while (cpu->get_interrupt_execution()); sc_stop(); }