base.hh (9347:b02075171b57) base.hh (9663:45df88079f04)
1/*
2 * Copyright (c) 2012 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

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

154 */
155 virtual void cleanupRefs() {}
156
157 /**
158 *iterated through all blocks and clear all locks
159 *Needed to clear all lock tracking at once
160 */
161 virtual void clearLocks() {}
1/*
2 * Copyright (c) 2012 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

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

154 */
155 virtual void cleanupRefs() {}
156
157 /**
158 *iterated through all blocks and clear all locks
159 *Needed to clear all lock tracking at once
160 */
161 virtual void clearLocks() {}
162
163 /**
164 * Print all tags used
165 */
166 virtual std::string print() const = 0;
162};
163
164class BaseTagsCallback : public Callback
165{
166 BaseTags *tags;
167 public:
168 BaseTagsCallback(BaseTags *t) : tags(t) {}
169 virtual void process() { tags->cleanupRefs(); };
170};
171
172#endif //__BASE_TAGS_HH__
167};
168
169class BaseTagsCallback : public Callback
170{
171 BaseTags *tags;
172 public:
173 BaseTagsCallback(BaseTags *t) : tags(t) {}
174 virtual void process() { tags->cleanupRefs(); };
175};
176
177#endif //__BASE_TAGS_HH__