diff options
| author | 2023-03-03 20:43:51 -0500 | |
|---|---|---|
| committer | 2023-03-05 02:36:31 -0500 | |
| commit | 194cf0b4974f088dbcf0df879e44e767b3ab4450 (patch) | |
| tree | ad482e75e533d75b4b8029bc85fa66fc2685ad6f | |
| parent | core_timing: Use higher precision sleeps on Windows (diff) | |
| download | yuzu-194cf0b4974f088dbcf0df879e44e767b3ab4450.tar.gz yuzu-194cf0b4974f088dbcf0df879e44e767b3ab4450.tar.xz yuzu-194cf0b4974f088dbcf0df879e44e767b3ab4450.zip | |
hardware_properties: Update BASE_CLOCK_RATE to exactly 1020 MHz
Diffstat (limited to '')
| -rw-r--r-- | src/core/hardware_properties.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/hardware_properties.h b/src/core/hardware_properties.h index 45567b840..191c28bb4 100644 --- a/src/core/hardware_properties.h +++ b/src/core/hardware_properties.h | |||
| @@ -13,11 +13,9 @@ namespace Core { | |||
| 13 | 13 | ||
| 14 | namespace Hardware { | 14 | namespace Hardware { |
| 15 | 15 | ||
| 16 | // The below clock rate is based on Switch's clockspeed being widely known as 1.020GHz | 16 | constexpr u64 BASE_CLOCK_RATE = 1'020'000'000; // Default CPU Frequency = 1020 MHz |
| 17 | // The exact value used is of course unverified. | 17 | constexpr u64 CNTFREQ = 19'200'000; // CNTPCT_EL0 Frequency = 19.2 MHz |
| 18 | constexpr u64 BASE_CLOCK_RATE = 1019215872; // Switch cpu frequency is 1020MHz un/docked | 18 | constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores |
| 19 | constexpr u64 CNTFREQ = 19200000; // Switch's hardware clock speed | ||
| 20 | constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores | ||
| 21 | 19 | ||
| 22 | // Virtual to Physical core map. | 20 | // Virtual to Physical core map. |
| 23 | constexpr std::array<s32, Common::BitSize<u64>()> VirtualToPhysicalCoreMap{ | 21 | constexpr std::array<s32, Common::BitSize<u64>()> VirtualToPhysicalCoreMap{ |