Somewhat functional clock timing setting
Some checks failed
eden-build / windows (msvc) (pull_request) Successful in 35m58s
eden-build / source (pull_request) Has been cancelled
eden-build / linux (pull_request) Has been cancelled
eden-build / android (pull_request) Has been cancelled
eden-license / license-header (pull_request_target) Has been cancelled
Some checks failed
eden-build / windows (msvc) (pull_request) Successful in 35m58s
eden-build / source (pull_request) Has been cancelled
eden-build / linux (pull_request) Has been cancelled
eden-build / android (pull_request) Has been cancelled
eden-license / license-header (pull_request_target) Has been cancelled
hangs when clock timing or both is set Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
449edd5224
commit
ec60d21616
10 changed files with 64 additions and 60 deletions
|
@ -5,22 +5,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#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 {
|
||||
|
||||
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 BASE_CLOCK_RATE = 1'020'000; // CPU Frequency = 1020.0 MHz
|
||||
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