A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix a stupid error: actually plug the CPU into the host...
[simgrid.git]
/
src
/
surf
/
cpu_interface.cpp
diff --git
a/src/surf/cpu_interface.cpp
b/src/surf/cpu_interface.cpp
index
78785a9
..
0bb5ed6
100644
(file)
--- a/
src/surf/cpu_interface.cpp
+++ b/
src/surf/cpu_interface.cpp
@@
-152,7
+152,7
@@
Cpu::Cpu(Model *model, simgrid::Host *host,
, m_speedScale(speedScale)
, m_host(host)
{
, m_speedScale(speedScale)
, m_host(host)
{
-
+ host->extension_set(Cpu::EXTENSION_ID, this);
}
Cpu::Cpu(Model *model, simgrid::Host *host,
}
Cpu::Cpu(Model *model, simgrid::Host *host,
@@
-164,6
+164,7
@@
Cpu::Cpu(Model *model, simgrid::Host *host,
, m_speedScale(speedScale)
, m_host(host)
{
, m_speedScale(speedScale)
, m_host(host)
{
+ host->extension_set(Cpu::EXTENSION_ID, this);
/* Currently, we assume that a VM does not have a multicore CPU. */
if (core > 1)
xbt_assert(model == surf_cpu_model_pm);
/* Currently, we assume that a VM does not have a multicore CPU. */
if (core > 1)
xbt_assert(model == surf_cpu_model_pm);