Changeset 143 for trunk/modules/vci_mem_cache_v4
- Timestamp:
- Mar 28, 2011, 6:46:33 PM (14 years ago)
- Location:
- trunk/modules/vci_mem_cache_v4/caba/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache_v4/caba/source/include/mem_cache_directory_v4.h
r142 r143 7 7 #include "arithmetics.h" 8 8 9 #define L1_MULTI_CACHE 9 #define L1_MULTI_CACHE 1 10 10 //#define RANDOM_EVICTION 11 11 -
trunk/modules/vci_mem_cache_v4/caba/source/src/vci_mem_cache_v4.cpp
r141 r143 29 29 #include "../include/vci_mem_cache_v4.h" 30 30 31 // #define TDEBUG // Transaction tab debug32 // #define IDEBUG // Update tab debug33 // #define DDEBUG // Directory debug34 // #define LOCK_DEBUG // Lock debug35 36 31 #define DEBUG_VCI_MEM_CACHE 0 37 #define DEBUG_START_CYCLE 94990032 #define DEBUG_START_CYCLE 1500 38 33 #define RANDOMIZE_SC 39 34 40 35 #define ASSERT_VERBOSE 41 36 #define ASSERT_NCYCLES m_cpt_cycles 37 38 #if DEBUG_VCI_MEM_CACHE 39 #define TDEBUG // Transaction tab debug 40 #define IDEBUG // Update tab debug 41 #define DDEBUG // Directory debug 42 #define LOCK_DEBUG // Lock debug 43 #endif 44 42 45 43 46 #include "debug.h" … … 2660 2663 bool match_heap = match_heap_srcid and match_heap_cache_id and match_heap_inst; 2661 2664 2665 PRINTF(" * <MEM_CACHE.CLEANUP> %s - srcid %d\n",name().c_str(),r_cleanup_srcid.read()); 2666 2662 2667 #if L1_MULTI_CACHE 2663 2668 PRINTF(" * <MEM_CACHE.CLEANUP> match_dir %d (match_dir_srcid %d, match_dir_cache_id %d, match_dir_inst %d)\n", … … 2683 2688 if(match_dir){ 2684 2689 DirectoryEntry dir_entry; 2685 dir_entry.valid = true;2690 dir_entry.valid = true; 2686 2691 dir_entry.is_cnt = r_cleanup_is_cnt.read(); 2687 dir_entry.dirty = r_cleanup_dirty.read();2692 dir_entry.dirty = r_cleanup_dirty.read(); 2688 2693 dir_entry.tag = r_cleanup_tag.read(); 2689 dir_entry.lock = r_cleanup_lock.read();2694 dir_entry.lock = r_cleanup_lock.read(); 2690 2695 dir_entry.ptr = heap_entry.next; 2691 2696 dir_entry.count = r_cleanup_count.read()-1;
Note: See TracChangeset
for help on using the changeset viewer.