You're right that it could be done either way. I think the rationale is that this way you don't need to search a list to see if your address is on it. If the common case is that there are no locked blocks in the entire cache though then that's not a big deal since the list will be empty anyway. I can't think of any other reason.
Steve On Thu, Jul 15, 2010 at 2:56 PM, Ali Saidi <sa...@umich.edu> wrote: > Can anyone remember why locked loads are tracked at a cache block > granularity (in the CacheBlk) class in the cache? It seems like it they > could be tracked by the cache object itself like it's done for physical > memory. > > > > Thanks, > > Ali > > > > _______________________________________________ > m5-dev mailing list > m5-dev@m5sim.org > http://m5sim.org/mailman/listinfo/m5-dev > > _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev