diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-11 19:56:24 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-02-11 20:19:11 -0400 |
| commit | 6fc0790f3a11786dad752a92f8360427bcae53d8 (patch) | |
| tree | dea6dc5efd324eb6bc8667a114e20c6e91a28195 /src/core/cpu_manager.h | |
| parent | 1ee7a4d9261d2224524d15e3661675f6f5fcf9d6 (diff) | |
Core: Set all hardware emulation constants in a single file.
Diffstat (limited to 'src/core/cpu_manager.h')
| -rw-r--r-- | src/core/cpu_manager.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h index feb619e1b0..97554d1bb6 100644 --- a/src/core/cpu_manager.h +++ b/src/core/cpu_manager.h @@ -6,6 +6,7 @@ #include <array> #include <memory> +#include "core/hardware_properties.h" namespace Core { @@ -39,9 +40,7 @@ public: void RunLoop(bool tight_loop); private: - static constexpr std::size_t NUM_CPU_CORES = 4; - - std::array<std::unique_ptr<CoreManager>, NUM_CPU_CORES> core_managers; + std::array<std::unique_ptr<CoreManager>, Hardware::NUM_CPU_CORES> core_managers; std::size_t active_core{}; ///< Active core, only used in single thread mode System& system; |
