From: Martin Quinson Date: Wed, 23 Dec 2015 08:53:29 +0000 (+0100) Subject: fix a stupid error: actually plug the CPU into the host... X-Git-Tag: v3_13~1397 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d2d941a9e68e4389cd4148ccbe1cb35da63e54e4?ds=sidebyside fix a stupid error: actually plug the CPU into the host... --- 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);