Ignore:
Timestamp:
Jun 18, 2010, 4:07:34 PM (14 years ago)
Author:
guthmull
Message:

Fix a bug with uncached reads, add more debug capabilities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_mem_cache_v4/caba/source/include/mem_cache_directory_v4.h

    r31 r57  
    440440
    441441    /////////////////////////////////////////////////////////////////////
     442    // The print_list() function prints a list from selected directory entry
     443    // Arguments :
     444    // - ptr : the pointer to the first entry to print
     445    /////////////////////////////////////////////////////////////////////
     446      void print_list(const size_t &ptr){
     447        bool end = false;
     448        size_t ptr_temp = ptr;
     449        std::cout << "Heap, printing the list from : " << std::dec << ptr << std::endl;
     450        while(!end){
     451            m_heap_tab[ptr_temp].print();
     452            if(ptr_temp == m_heap_tab[ptr_temp].next) end = true;
     453            ptr_temp = m_heap_tab[ptr_temp].next;
     454        }
     455      } // end print_list()
     456
     457    /////////////////////////////////////////////////////////////////////
    442458    // The is_full() function return true if the heap is full.
    443459    /////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.