diff --git a/src/core/sal/SimulatorController.cc b/src/core/sal/SimulatorController.cc index dcd4d90d..a832dc0a 100644 --- a/src/core/sal/SimulatorController.cc +++ b/src/core/sal/SimulatorController.cc @@ -169,11 +169,10 @@ void SimulatorController::onJump(ConcreteCPU* cpu, bool flagTriggered, unsigned m_LstList.triggerActiveListeners(); } -bool SimulatorController::addCPU(ConcreteCPU* cpu) +void SimulatorController::addCPU(ConcreteCPU* cpu) { assert(cpu != NULL && "FATAL ERROR: Argument (cpu) cannot be NULL!"); m_CPUs.push_back(cpu); - return true; } ConcreteCPU& SimulatorController::getCPU(size_t i) const diff --git a/src/core/sal/SimulatorController.hpp b/src/core/sal/SimulatorController.hpp index a1f4b715..8c9aa62e 100644 --- a/src/core/sal/SimulatorController.hpp +++ b/src/core/sal/SimulatorController.hpp @@ -143,7 +143,7 @@ public: * implementation (especially before the experiment code runs). * @param cpu the cpu that should be added to the list */ - bool addCPU(ConcreteCPU* cpu); + void addCPU(ConcreteCPU* cpu); /** * Gets the CPU with the provided \c id. * @param id the id of the CPU to get