mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Core/PowerPC: Return AvailableCPUCores() as a std::span.
This commit is contained in:
@ -236,9 +236,9 @@ void PowerPCManager::InitializeCPUCore(CPUCore cpu_core)
|
||||
m_mode = m_cpu_core_base == &interpreter ? CoreMode::Interpreter : CoreMode::JIT;
|
||||
}
|
||||
|
||||
const std::vector<CPUCore>& AvailableCPUCores()
|
||||
std::span<const CPUCore> AvailableCPUCores()
|
||||
{
|
||||
static const std::vector<CPUCore> cpu_cores = {
|
||||
static constexpr auto cpu_cores = {
|
||||
#ifdef _M_X86_64
|
||||
CPUCore::JIT64,
|
||||
#elif defined(_M_ARM_64)
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <array>
|
||||
#include <cstddef>
|
||||
#include <iosfwd>
|
||||
#include <span>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
@ -238,7 +239,7 @@ static_assert(offsetof(PowerPC::PowerPCState, above_fits_in_first_0x100) <= 0x10
|
||||
#endif
|
||||
#endif
|
||||
|
||||
const std::vector<CPUCore>& AvailableCPUCores();
|
||||
std::span<const CPUCore> AvailableCPUCores();
|
||||
CPUCore DefaultCPUCore();
|
||||
|
||||
class PowerPCManager
|
||||
|
Reference in New Issue
Block a user