diff options
| author | aamir <[email protected]> | 2018-09-16 20:07:33 -0700 |
|---|---|---|
| committer | aamir <[email protected]> | 2018-09-16 20:07:33 -0700 |
| commit | 3949357047a621a06b2e7fb4fd6099cce1469d27 (patch) | |
| tree | 3a0209828d00d104d9f752c639a3386733b6dc3d /src/abstract_hardware_model.h | |
| parent | 97759116edf86a3a2b1d5bf772450aea42aa8385 (diff) | |
print for mem transaction
Diffstat (limited to 'src/abstract_hardware_model.h')
| -rw-r--r-- | src/abstract_hardware_model.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 9c418fa..d628745 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -933,7 +933,18 @@ public: for(unsigned i=0; i<num_addrs; i++) m_per_scalar_thread[n].memreqaddr[i] = addr[i]; } - + void print_m_accessq(){ + + if(accessq_empty()) + return; + else{ + printf("Printing mem access generated\n"); + std::list<mem_access_t>::iterator it; + for (it = m_accessq.begin(); it != m_accessq.end(); ++it){ + printf("MEM_TXN_GEN:%s:%x, Size:%d \n",mem_access_type_str(it->get_type()), it->get_addr(),it->get_size()); + } + } + } struct transaction_info { std::bitset<4> chunks; // bitmask: 32-byte chunks accessed mem_access_byte_mask_t bytes; |
