print out test result at the end of simulation

This commit is contained in:
Màrius Montón 2019-09-10 12:36:45 +02:00
parent d63d95f634
commit 916ab46907
1 changed files with 6 additions and 0 deletions

View File

@ -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;