From 916ab469076b637ff436152baf15c8cd0e3d5956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A0rius=20Mont=C3=B3n?= Date: Tue, 10 Sep 2019 12:36:45 +0200 Subject: [PATCH] print out test result at the end of simulation --- src/Execute.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Execute.cpp b/src/Execute.cpp index 30d2e6b..2d4e9e6 100644 --- a/src/Execute.cpp +++ b/src/Execute.cpp @@ -876,6 +876,12 @@ bool Execute::ECALL(Instruction &inst) { cout << "Simulation time " << sc_time_stamp() << endl; perf->dump(); + uint32_t gp_value = regs->getValue(Registers::gp); + if ( gp_value == 1) { + cout << "GP value is 1, test result is OK" << endl; + } else { + cout << "GP value is " << gp_value << endl; + } //SC_REPORT_ERROR("Execute", "ECALL"); sc_stop(); return true;