X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4736926935eb52f1e561715d2fa5a3fc4144a188..d2d941a9e68e4389cd4148ccbe1cb35da63e54e4:/src/surf/cpu_interface.cpp?ds=sidebyside diff --git a/src/surf/cpu_interface.cpp b/src/surf/cpu_interface.cpp index 78785a9e18..0bb5ed6219 100644 --- 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) { - + host->extension_set(Cpu::EXTENSION_ID, this); } Cpu::Cpu(Model *model, simgrid::Host *host, @@ -164,6 +164,7 @@ Cpu::Cpu(Model *model, simgrid::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);