better (?) Log output
This commit is contained in:
parent
a409f48d40
commit
97b15ca7a3
14
src/CPU.cpp
14
src/CPU.cpp
|
@ -289,8 +289,8 @@ void CPU::CPU_thread(void) {
|
||||||
if ( trans->is_response_error() ) {
|
if ( trans->is_response_error() ) {
|
||||||
SC_REPORT_ERROR("CPU base", "Read memory");
|
SC_REPORT_ERROR("CPU base", "Read memory");
|
||||||
} else {
|
} else {
|
||||||
log->SC_log(Log::INFO) << "PC: " << hex << register_bank->getPC()
|
log->SC_log(Log::INFO) << "PC: 0x" << hex
|
||||||
<< dec << endl;
|
<< register_bank->getPC() << ". ";
|
||||||
|
|
||||||
Instruction inst(INSTR);
|
Instruction inst(INSTR);
|
||||||
|
|
||||||
|
@ -308,17 +308,9 @@ void CPU::CPU_thread(void) {
|
||||||
std::cout << "Extension not implemented yet" << std::endl;
|
std::cout << "Extension not implemented yet" << std::endl;
|
||||||
inst.dump();
|
inst.dump();
|
||||||
exec->NOP(inst);
|
exec->NOP(inst);
|
||||||
|
} // switch (inst.check_extension())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// default:
|
|
||||||
// cout << endl << "Instruction not implemented: ";
|
|
||||||
// inst.dump();
|
|
||||||
// exec->NOP(inst);
|
|
||||||
}
|
|
||||||
perf->instructionsInc();
|
perf->instructionsInc();
|
||||||
|
|
||||||
if (PC_not_affected == true) {
|
if (PC_not_affected == true) {
|
||||||
|
|
Loading…
Reference in New Issue