>> in lru.cc, I see >> replacements[0]++; >> >> the replacements is a vector defined as >> Stats::Vector replacements; >> >> What does '0' mean? if it is a vector why not using an index? > > It might be that the intended functionality that would require using a > variable instead of a fixed index has not been implemented.
Vector statistics work correctly. In this particular case, I think the intent was for replacements to be per thread, but it was never implemented correctly. In general, the per-thread/per-cpu/per-context statistics in the caches are very confused. I have an outstanding patch to (start) cleaning that up, but I need Ali's help to get it through. Nate _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
