From 5f47a8a90689037fc4db96d52d835c83d40bcc41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A0rius=20Mont=C3=B3n?= Date: Wed, 30 Jun 2021 17:28:10 +0200 Subject: [PATCH] Flush log file to save all data to disk before close simulator. --- src/BASE_ISA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BASE_ISA.cpp b/src/BASE_ISA.cpp index 37be028..527157a 100644 --- a/src/BASE_ISA.cpp +++ b/src/BASE_ISA.cpp @@ -914,7 +914,7 @@ bool BASE_ISA::Exec_FENCE() const { bool BASE_ISA::Exec_ECALL() const { - log->SC_log(Log::INFO) << "ECALL" << "\n"; + log->SC_log(Log::INFO) << "ECALL" << "\n" << std::flush ; std::cout << "\n" << "ECALL Instruction called, stopping simulation" << "\n"; regs->dump();