CPU clock rate slider
Some checks failed
eden-build / source (push) Successful in 7m40s
eden-build / android (push) Failing after 17m50s
eden-build / linux (push) Failing after 25m30s
eden-license / license-header (pull_request_target) Has been cancelled
eden-build / windows (msvc) (push) Has been cancelled
Some checks failed
eden-build / source (push) Successful in 7m40s
eden-build / android (push) Failing after 17m50s
eden-build / linux (push) Failing after 25m30s
eden-license / license-header (pull_request_target) Has been cancelled
eden-build / windows (msvc) (push) Has been cancelled
very wip Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
be1c1e4a48
commit
2b0a8fcd6d
13 changed files with 94 additions and 35 deletions
|
@ -1,19 +1,26 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
||||
// SPDX-FileCopyrightText: Copyright 2025 eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <tuple>
|
||||
#include <iostream>
|
||||
|
||||
#include "common/bit_util.h"
|
||||
#include "common/common_types.h"
|
||||
#include "common/settings.h"
|
||||
#include "common/logging/log.h"
|
||||
|
||||
namespace Core {
|
||||
|
||||
namespace Hardware {
|
||||
|
||||
constexpr u64 BASE_CLOCK_RATE = 1'020'000'000; // Default CPU Frequency = 1020 MHz
|
||||
inline u64 BASE_CLOCK_RATE() {
|
||||
LOG_DEBUG(Core, "Settings reported clock rate={:08X}", Settings::values.cpu_clock_rate.GetValue());
|
||||
// std::cout << Settings::values.cpu_clock_rate.GetValue() << std::endl;
|
||||
return Settings::values.cpu_clock_rate.GetValue() * 1'000'000;
|
||||
}
|
||||
constexpr u64 CNTFREQ = 19'200'000; // CNTPCT_EL0 Frequency = 19.2 MHz
|
||||
constexpr u32 NUM_CPU_CORES = 4; // Number of CPU Cores
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue