Hello,

I am trying to place that code inside mem/cache/mshr_queue.cc

  if (!freeList.empty()){
        DPRINTF(Cache,"!freeList.empty() returns True\n");    
    } else {
        DPRINTF(Cache,"!freeList.empty() returns False\n");    
    }

and I have included:

#include "debug/Cache.hh"

but gem5 cannot compile and I get this error:

build/ARM/mem/cache/mshr_queue.cc: In member function 'MSHR* 
MSHRQueue::allocate(Addr, int, Packet*&, Tick, Counter)':
build/ARM/mem/cache/mshr_queue.cc:171:17: error: 'Cache' was not declared in 
this scope
build/ARM/mem/cache/mshr_queue.cc:171:17: note: suggested alternative:
build/ARM/debug/Cache.hh:12:19: note:   'Debug::Cache'
build/ARM/mem/cache/mshr_queue.cc:171:57: error: 'DPRINTF' was not declared in 
this scope
build/ARM/mem/cache/mshr_queue.cc:173:17: error: 'Cache' was not declared in 
this scope
build/ARM/mem/cache/mshr_queue.cc:173:17: note: suggested alternative:
build/ARM/debug/Cache.hh:12:19: note:   'Debug::Cache'
build/ARM/mem/cache/mshr_queue.cc:173:58: error: 'DPRINTF' was not declared in 
this scope


In all other files I could add debug messages with the same way but not in 
here. Why is that?

                                          
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to