diff options
author | Nathan Binkert <nate@binkert.org> | 2008-06-17 21:11:20 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-06-17 21:11:20 -0700 |
commit | 163465ac08674125fed1d4e843cab6c1c2bf2033 (patch) | |
tree | 7a7a1f5cec5d48a5a209f2502ab683822942cd65 /src/cpu/simple_thread.cc | |
parent | 9dc4e2952cf34a794c18c7b98010c0b496123f9e (diff) | |
download | gem5-163465ac08674125fed1d4e843cab6c1c2bf2033.tar.xz |
ThreadState: Ensure that kernelStats is properly initialized
Diffstat (limited to 'src/cpu/simple_thread.cc')
-rw-r--r-- | src/cpu/simple_thread.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cpu/simple_thread.cc b/src/cpu/simple_thread.cc index 93772fbe1..5a5444de4 100644 --- a/src/cpu/simple_thread.cc +++ b/src/cpu/simple_thread.cc @@ -86,11 +86,8 @@ SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys, profileNode = &dummyNode; profilePC = 3; - if (use_kernel_stats) { + if (use_kernel_stats) kernelStats = new TheISA::Kernel::Statistics(system); - } else { - kernelStats = NULL; - } } #else SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, Process *_process, |