diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-10-18 13:15:08 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-10-18 13:15:08 -0400 |
commit | 8351660273980196269ae14165ae7158c6ffc392 (patch) | |
tree | b77809945e04e5a23abb3bf676eff20437345216 /src/cpu/simple/base.cc | |
parent | 6010f350a48c9d8f049fd82d27c188ed1ebe77ed (diff) | |
download | gem5-8351660273980196269ae14165ae7158c6ffc392.tar.xz |
CPU: Use the ThreadContext cpu id instead of the params cpu id in all cases.
--HG--
extra : convert_revision : 6d025764682181b1f67df3b1d8d1d59099136df7
Diffstat (limited to 'src/cpu/simple/base.cc')
-rw-r--r-- | src/cpu/simple/base.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index 68c6e12ea..1611a7275 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -91,6 +91,8 @@ BaseSimpleCPU::BaseSimpleCPU(Params *p) threadContexts.push_back(tc); + cpuId = tc->readCpuId(); + fetchOffset = 0; stayAtPC = false; } |