diff --git a/src/Memory.cpp b/src/Memory.cpp index 0b15e9d..8def2cc 100644 --- a/src/Memory.cpp +++ b/src/Memory.cpp @@ -67,7 +67,6 @@ void Memory::b_transport(tlm::tlm_generic_payload &trans, return; } - // Obliged to implement read and write commands if (cmd == tlm::TLM_READ_COMMAND) { std::copy_n(mem.cbegin() + adr, len, ptr); @@ -97,13 +96,13 @@ void Memory::b_transport(tlm::tlm_generic_payload &trans, bool Memory::get_direct_mem_ptr(tlm::tlm_generic_payload &trans, tlm::tlm_dmi &dmi_data) { - (void) trans; + + (void) trans; if (memory_offset != 0) { return false; } - // Permit read and write access dmi_data.allow_read_write(); diff --git a/src/MemoryInterface.cpp b/src/MemoryInterface.cpp index d636639..efaa77b 100644 --- a/src/MemoryInterface.cpp +++ b/src/MemoryInterface.cpp @@ -10,9 +10,7 @@ MemoryInterface::MemoryInterface() : - data_bus("data_bus") { - -} + data_bus("data_bus") {} /** * Access data memory to get data diff --git a/src/Performance.cpp b/src/Performance.cpp index 25a95c7..696e8dd 100644 --- a/src/Performance.cpp +++ b/src/Performance.cpp @@ -28,15 +28,13 @@ Performance::Performance() { void Performance::dump() const { std::cout << "************************************" << std::endl; - std::cout << std::dec << "# data memory reads: " << data_memory_read - << std::endl; + std::cout << std::dec << "# data memory reads: " << data_memory_read << std::endl; std::cout << "# data memory writes: " << data_memory_write << std::endl; std::cout << "# code memory reads: " << code_memory_read << std::endl; std::cout << "# code memory writes: " << code_memory_write << std::endl; std::cout << "# registers read: " << register_read << std::endl; std::cout << "# registers write: " << register_write << std::endl; - std::cout << "# instructions executed: " << instructions_executed - << std::endl; + std::cout << "# instructions executed: " << instructions_executed << std::endl; std::cout << "************************************" << std::endl; }