That is not applicable. In addition to compiler errors, there is no such hierarchy in c++
On 3/7/14, Hamid Motaman <[email protected]> wrote: > Hello > you can use if(name()==system.cpu.dcache) for finding whether data cache is > accessed or not > > > > > Sent from Samsung Mobile > > -------- Original message -------- > From: Mahmood Naderan <[email protected]> > Date: > To: gem5 users mailing list <[email protected]> > Subject: [gem5-users] Finding cache type in cache_impl.hh > > Hi, > Since cache_impl.hh is used for all cache levels and types, how is it > possible to check whether it is used for d-cache or something else? > > IsTopLevel is useful for L1/L2 but what about i-cache, d-cache and > page table walker? > I can not find any identifier for that. > > -- > Regards, > Mahmood > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -- Regards, Mahmood _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
