From d2d941a9e68e4389cd4148ccbe1cb35da63e54e4 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 23 Dec 2015 09:53:29 +0100 Subject: [PATCH] fix a stupid error: actually plug the CPU into the host... --- src/surf/cpu_interface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1