committed by
FernandoS27
17 changed files with 88 additions and 53 deletions
-
3src/core/arm/dynarmic/arm_dynarmic.cpp
-
3src/core/core_timing.cpp
-
18src/core/core_timing_util.cpp
-
12src/core/core_timing_util.h
-
5src/core/cpu_manager.h
-
28src/core/hardware_properties.h
-
12src/core/hle/kernel/scheduler.cpp
-
13src/core/hle/kernel/scheduler.h
-
15src/core/hle/kernel/thread.cpp
-
7src/core/hle/service/hid/hid.cpp
-
7src/core/hle/service/nvflinger/nvflinger.cpp
-
3src/core/hle/service/time/standard_steady_clock_core.cpp
-
3src/core/hle/service/time/tick_based_steady_clock_core.cpp
-
3src/core/hle/service/time/time.cpp
-
3src/core/hle/service/time/time_sharedmemory.cpp
-
3src/core/memory/cheat_engine.cpp
-
3src/core/tools/freezer.cpp
@ -0,0 +1,28 @@ |
|||
// Copyright 2020 yuzu Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "common/common_types.h" |
|||
|
|||
namespace Core { |
|||
|
|||
union EmuThreadHandle { |
|||
u64 raw; |
|||
struct { |
|||
u32 host_handle; |
|||
u32 guest_handle; |
|||
}; |
|||
}; |
|||
|
|||
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 |
|||
} // namespace Hardware |
|||
|
|||
} // namespace Core |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue