[gem5-users] Re: 'DPRINTF' was not declared in this scope

2020-11-22 Thread yujiecui--- via gem5-users
That worked. thank you. Would you mind explaining the following code for me? I have taken the course of C++, but I have never seen such usage. std::static_pointer_cast( candidate->replacementData)->valid I guess RandomReplData should be assigned to the template class, but wh

[gem5-users] Re: 'DPRINTF' was not declared in this scope

2020-11-21 Thread Gabe Black via gem5-users
You need to include base/trace.hh which defines DPRINTF itself. Gabe On Sat, Nov 21, 2020 at 8:33 PM yujiecui--- via gem5-users < gem5-users@gem5.org> wrote: > I want to know the cache information when the replacement algorithm is > executed. So I made the following changes in the latest version