Code clean-up
This commit is contained in:
parent
d8a20db976
commit
d0f1d2f3b2
|
@ -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();
|
||||
|
||||
|
|
|
@ -10,9 +10,7 @@
|
|||
|
||||
|
||||
MemoryInterface::MemoryInterface() :
|
||||
data_bus("data_bus") {
|
||||
|
||||
}
|
||||
data_bus("data_bus") {}
|
||||
|
||||
/**
|
||||
* Access data memory to get data
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue