diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-03-07 16:54:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 16:54:13 +0100 |
commit | a7792e5ff83523142230951ac7eacbd7685dc40b (patch) | |
tree | a7531c65e2ddec1122fc071d44c8106c48352ce3 /src/core/hardware_properties.h | |
parent | Merge pull request #9890 from Kelebek1/reverb_fix (diff) | |
parent | native_clock: Round RDTSC frequency to the nearest 1000 (diff) | |
download | yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.gz yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.bz2 yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.lz yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.xz yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.tar.zst yuzu-a7792e5ff83523142230951ac7eacbd7685dc40b.zip |
Diffstat (limited to 'src/core/hardware_properties.h')
-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 { namespace Hardware { -// The below clock rate is based on Switch's clockspeed being widely known as 1.020GHz -// The exact value used is of course unverified. -constexpr u64 BASE_CLOCK_RATE = 1019215872; // Switch cpu frequency is 1020MHz un/docked -constexpr u64 CNTFREQ = 19200000; // Switch's hardware clock speed -constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores +constexpr u64 BASE_CLOCK_RATE = 1'020'000'000; // Default CPU Frequency = 1020 MHz +constexpr u64 CNTFREQ = 19'200'000; // CNTPCT_EL0 Frequency = 19.2 MHz +constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores // Virtual to Physical core map. constexpr std::array<s32, Common::BitSize<u64>()> VirtualToPhysicalCoreMap{ |