From 5ad8ced4347c70bbceddfb49ae34e7359a2ecee9 Mon Sep 17 00:00:00 2001 From: mariusmonton Date: Mon, 18 Feb 2019 13:57:24 +0100 Subject: [PATCH] better log for CSRRW instruction --- src/Execute.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Execute.cpp b/src/Execute.cpp index f9bd941..22ab26f 100644 --- a/src/Execute.cpp +++ b/src/Execute.cpp @@ -912,9 +912,10 @@ bool Execute::CSRRW(Instruction &inst) { aux = regs->getValue(rs1); regs->setCSR(csr, aux); - log->SC_log(Log::INFO) << "CSRRW: CSR #" - << csr << " -> x" << rd - << ". x" << rs1 << "-> CSR #" << csr << endl; + log->SC_log(Log::INFO) << hex << "CSRRW: CSR #" + << csr << " -> x" << dec << rd + << ". x" << rs1 << "-> CSR #" << hex << csr << " (0x" + << aux << ")" << endl; return true; }