projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge ktlim@zamp:./local/clean/o3-merge/m5
[gem5.git]
/
src
/
cpu
/
simple_thread.cc
diff --git
a/src/cpu/simple_thread.cc
b/src/cpu/simple_thread.cc
index 5f86cf2b74b8b9445a7b12344c0f975faf70beb1..4fc47c982115651287ec15575835ef00b9769569 100644
(file)
--- a/
src/cpu/simple_thread.cc
+++ b/
src/cpu/simple_thread.cc
@@
-162,6
+162,11
@@
SimpleThread::takeOverFrom(ThreadContext *oldContext)
if (quiesceEvent) {
quiesceEvent->tc = tc;
}
+
+ Kernel::Statistics *stats = oldContext->getKernelStats();
+ if (stats) {
+ kernelStats = stats;
+ }
#endif
storeCondFailures = 0;