projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a46e19f
)
One last adjustment to get rid of skew in the simple atomic cpu.
author
Gabe Black
<gblack@eecs.umich.edu>
Sat, 28 Oct 2006 07:44:55 +0000
(
03:44
-0400)
committer
Gabe Black
<gblack@eecs.umich.edu>
Sat, 28 Oct 2006 07:44:55 +0000
(
03:44
-0400)
--HG--
extra : convert_revision :
8e46929ed7da5dae6888f773de4e1ecc9b249fe0
src/cpu/simple/atomic.cc
patch
|
blob
|
history
diff --git
a/src/cpu/simple/atomic.cc
b/src/cpu/simple/atomic.cc
index a72f6361a8ad49bc3f22bfe27c13aba14f2dc6cf..11e4d2acb22abad96159f8d31f474424e58d08ed 100644
(file)
--- a/
src/cpu/simple/atomic.cc
+++ b/
src/cpu/simple/atomic.cc
@@
-240,7
+240,7
@@
AtomicSimpleCPU::activateContext(int thread_num, int delay)
notIdleFraction++;
//Make sure ticks are still on multiples of cycles
- Tick nextTick = curTick + cycles(1) - 1;
+ Tick nextTick = curTick + cycles(
delay +
1) - 1;
nextTick -= (nextTick % (cycles(1)));
tickEvent.schedule(nextTick);
_status = Running;