diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-07 21:50:29 -0800 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-07 21:50:29 -0800 |
commit | 6f1187943cf78c2fd0334bd7e4372ae79a587fa4 (patch) | |
tree | 8d0eac2e2f4d55d48245266d3930ad4e7f92030f /src/base/trace.hh | |
parent | c22be9f2f016872b05d65c82055ddc936b4aa075 (diff) | |
download | gem5-6f1187943cf78c2fd0334bd7e4372ae79a587fa4.tar.xz |
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.
Diffstat (limited to 'src/base/trace.hh')
-rw-r--r-- | src/base/trace.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/trace.hh b/src/base/trace.hh index f793abff9..a03a34018 100644 --- a/src/base/trace.hh +++ b/src/base/trace.hh @@ -89,17 +89,17 @@ inline const std::string &name() { return Trace::DefaultName; } #define DDUMP(x, data, count) do { \ if (DTRACE(x)) \ - Trace::dump(curTick, name(), data, count); \ + Trace::dump(curTick(), name(), data, count); \ } while (0) #define DPRINTF(x, ...) do { \ if (DTRACE(x)) \ - Trace::dprintf(curTick, name(), __VA_ARGS__); \ + Trace::dprintf(curTick(), name(), __VA_ARGS__); \ } while (0) #define DPRINTFS(x,s, ...) do { \ if (DTRACE(x)) \ - Trace::dprintf(curTick, s->name(), __VA_ARGS__); \ + Trace::dprintf(curTick(), s->name(), __VA_ARGS__); \ } while (0) @@ -109,11 +109,11 @@ inline const std::string &name() { return Trace::DefaultName; } } while (0) #define DDUMPN(data, count) do { \ - Trace::dump(curTick, name(), data, count); \ + Trace::dump(curTick(), name(), data, count); \ } while (0) #define DPRINTFN(...) do { \ - Trace::dprintf(curTick, name(), __VA_ARGS__); \ + Trace::dprintf(curTick(), name(), __VA_ARGS__); \ } while (0) #define DPRINTFNR(...) do { \ |