better log for CSRRW instruction
This commit is contained in:
parent
9d89f847a0
commit
5ad8ced434
|
@ -912,9 +912,10 @@ bool Execute::CSRRW(Instruction &inst) {
|
||||||
aux = regs->getValue(rs1);
|
aux = regs->getValue(rs1);
|
||||||
regs->setCSR(csr, aux);
|
regs->setCSR(csr, aux);
|
||||||
|
|
||||||
log->SC_log(Log::INFO) << "CSRRW: CSR #"
|
log->SC_log(Log::INFO) << hex << "CSRRW: CSR #"
|
||||||
<< csr << " -> x" << rd
|
<< csr << " -> x" << dec << rd
|
||||||
<< ". x" << rs1 << "-> CSR #" << csr << endl;
|
<< ". x" << rs1 << "-> CSR #" << hex << csr << " (0x"
|
||||||
|
<< aux << ")" << endl;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue