Deleted Added
sdiff udiff text old ( 10693:c0979b2ebda5 ) new ( 10815:169af9a2779f )
full compact
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 39 unchanged lines hidden (view full) ---

48
49#ifndef __BASE_TAGS_HH__
50#define __BASE_TAGS_HH__
51
52#include <string>
53
54#include "base/callback.hh"
55#include "base/statistics.hh"
56#include "params/BaseTags.hh"
57#include "sim/clocked_object.hh"
58
59class BaseCache;
60
61/**
62 * A common base class of Cache tagstore objects.
63 */

--- 110 unchanged lines hidden (view full) ---

174 *Needed to clear all lock tracking at once
175 */
176 virtual void clearLocks() {}
177
178 /**
179 * Print all tags used
180 */
181 virtual std::string print() const = 0;
182};
183
184class BaseTagsCallback : public Callback
185{
186 BaseTags *tags;
187 public:
188 BaseTagsCallback(BaseTags *t) : tags(t) {}
189 virtual void process() { tags->cleanupRefs(); };
190};
191
192class BaseTagsDumpCallback : public Callback
193{
194 BaseTags *tags;
195 public:
196 BaseTagsDumpCallback(BaseTags *t) : tags(t) {}
197 virtual void process() { tags->computeStats(); };
198};
199
200#endif //__BASE_TAGS_HH__