diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-10-18 22:44:33 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-10-18 22:44:33 -0700 |
commit | 63f4281d9da864ccd466df1acca2f7c0bec0cfee (patch) | |
tree | 0ed8a59a896813fefbfb3993d99ec994199a4f34 /src/cpu/simple/atomic.cc | |
parent | 9243666c398ad740d5f0b6e5a774332b61d5fdc1 (diff) | |
parent | 8351660273980196269ae14165ae7158c6ffc392 (diff) | |
download | gem5-63f4281d9da864ccd466df1acca2f7c0bec0cfee.tar.xz |
Merge with head.
--HG--
extra : convert_revision : 7a1c612e7f64fc6b35749547d744e919e034e66f
Diffstat (limited to 'src/cpu/simple/atomic.cc')
-rw-r--r-- | src/cpu/simple/atomic.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc index 525bcbd22..9f574e8be 100644 --- a/src/cpu/simple/atomic.cc +++ b/src/cpu/simple/atomic.cc @@ -159,9 +159,9 @@ AtomicSimpleCPU::AtomicSimpleCPU(Params *p) icachePort.snoopRangeSent = false; dcachePort.snoopRangeSent = false; - ifetch_req.setThreadContext(p->cpu_id, 0); // Add thread ID if we add MT - data_read_req.setThreadContext(p->cpu_id, 0); // Add thread ID here too - data_write_req.setThreadContext(p->cpu_id, 0); // Add thread ID here too + ifetch_req.setThreadContext(cpuId, 0); // Add thread ID if we add MT + data_read_req.setThreadContext(cpuId, 0); // Add thread ID here too + data_write_req.setThreadContext(cpuId, 0); // Add thread ID here too } @@ -237,6 +237,8 @@ AtomicSimpleCPU::takeOverFrom(BaseCPU *oldCPU) if (_status != Running) { _status = Idle; } + assert(threadContexts.size() == 1); + cpuId = tc->readCpuId(); } |