mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
CPU support with up to 256 cores
This commit is contained in:
parent
fc5162a02f
commit
ee738f434e
1 changed files with 4 additions and 4 deletions
|
@ -2882,7 +2882,7 @@ void detect_big_little_topology(std::vector<int>& big_cores, std::vector<int>& l
|
|||
|
||||
const std::string base_path = "/sys/devices/system/cpu/";
|
||||
|
||||
for (unsigned int i = 0; i < 8; ++i)
|
||||
for (unsigned int i = 0; i < 256; ++i)
|
||||
{
|
||||
std::ifstream infile(base_path + "cpu" + std::to_string(i) + "/cpufreq/cpuinfo_max_freq");
|
||||
if (infile)
|
||||
|
@ -2909,11 +2909,11 @@ u64 thread_ctrl::get_affinity_mask(thread_class group)
|
|||
u64 prime_mask = 0, big_mask = 0, little_mask = 0;
|
||||
|
||||
for (int core : big_cores)
|
||||
big_mask |= (1UL << core);
|
||||
big_mask |= (1ULL << core);
|
||||
for (int core : little_cores)
|
||||
little_mask |= (1UL << core);
|
||||
little_mask |= (1ULL << core);
|
||||
for (int core : prime_cores)
|
||||
prime_mask |= (1UL << core);
|
||||
prime_mask |= (1ULL << core);
|
||||
|
||||
switch (group)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue