From 6f1187943cf78c2fd0334bd7e4372ae79a587fa4 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Fri, 7 Jan 2011 21:50:29 -0800 Subject: Replace curTick global variable with accessor functions. This step makes it easy to replace the accessor functions (which still access a global variable) with ones that access per-thread curTick values. --- src/base/cp_annotate.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/cp_annotate.hh') diff --git a/src/base/cp_annotate.hh b/src/base/cp_annotate.hh index 8ce9995a8..fb955a380 100644 --- a/src/base/cp_annotate.hh +++ b/src/base/cp_annotate.hh @@ -408,7 +408,7 @@ class CPA : SimObject int smi = getSm(sysi, sm, frame); add(OP_BEGIN, FL_HW | f, 0, smi, getSt(sm, st)); if (f & FL_BAD) - warn("BAD state encountered: at cycle %d: %s\n", curTick, st); + warn("BAD state encountered: at cycle %d: %s\n", curTick(), st); } inline void hwQ(flags f, System *sys, uint64_t frame, std::string sm, -- cgit v1.2.3