summaryrefslogtreecommitdiff
path: root/cpu/base.cc
diff options
context:
space:
mode:
authorBenjamin Nash <benash@umich.edu>2005-06-29 11:17:12 -0400
committerBenjamin Nash <benash@umich.edu>2005-06-29 11:17:12 -0400
commiteaeb1b6ff084b4797a31908fa5fb1d688c55dd60 (patch)
tree7a8e4d4bcd25f2f51c1020fedeff0f47449fd0c9 /cpu/base.cc
parentbc76a807af2a2a874be461f0c6be9a6c5ec8bfad (diff)
parent8a0bc840221cf7af4845f4ee44de11bc7271ff10 (diff)
downloadgem5-eaeb1b6ff084b4797a31908fa5fb1d688c55dd60.tar.xz
Merge m5read@m5.eecs.umich.edu:/bk/m5
into zed.eecs.umich.edu:/z/benash/bk/m5 --HG-- extra : convert_revision : a27bb3737d8a7d5c1fadf27f4cb5018d0b6054da
Diffstat (limited to 'cpu/base.cc')
-rw-r--r--cpu/base.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpu/base.cc b/cpu/base.cc
index 9e66d934f..50c777b0d 100644
--- a/cpu/base.cc
+++ b/cpu/base.cc
@@ -189,15 +189,15 @@ BaseCPU::registerExecContexts()
{
for (int i = 0; i < execContexts.size(); ++i) {
ExecContext *xc = execContexts[i];
- int cpu_id;
-
#ifdef FULL_SYSTEM
- cpu_id = system->registerExecContext(xc);
+ int id = params->cpu_id;
+ if (id != -1)
+ id += i;
+
+ xc->cpu_id = system->registerExecContext(xc, id);
#else
- cpu_id = xc->process->registerExecContext(xc);
+ xc->cpu_id = xc->process->registerExecContext(xc);
#endif
-
- xc->cpu_id = cpu_id;
}
}