summaryrefslogtreecommitdiff
path: root/src/cpu/cpuevent.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/cpuevent.hh')
-rw-r--r--src/cpu/cpuevent.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/cpuevent.hh b/src/cpu/cpuevent.hh
index c973621c0..5816c6ca1 100644
--- a/src/cpu/cpuevent.hh
+++ b/src/cpu/cpuevent.hh
@@ -71,6 +71,7 @@ class CpuEvent : public Event
*/
static void replaceThreadContext(ThreadContext *oldTc,
ThreadContext *newTc);
+ ThreadContext* getTC() { return tc; }
};
template <class T, void (T::* F)(ThreadContext *tc)>