bunnei
5e600cba3a
Revert "kernel: Various improvements to scheduler"
4 years ago
bunnei
b2f859f47c
core: hle: kernel: Disable dispatch count tracking on single core.
- This would have limited value, and would be a mess to handle properly.
4 years ago
bunnei
9951f24bad
core: hle: kernel: k_thread: Add KScopedDisableDispatch.
4 years ago
Morph
7ebc38a6d1
general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
5 years ago
Lioncash
2d390c1911
k_thread: Move dereference after null check in Initialize()
Prevents a -Wnonnull warning on GCC.
5 years ago
Lioncash
e019da0487
kernel: Eliminate variable shadowing
Now that the large kernel refactor is merged, we can eliminate the
remaining variable shadowing cases.
5 years ago
bunnei
47224d3864
hle: kernel: Migrate to KHandleTable.
5 years ago
bunnei
ad048de3d6
hle: kernel: Rename Process to KProcess.
5 years ago
bunnei
796dddf78f
hle: kernel: Remove deprecated Object class.
5 years ago
bunnei
7e716f100d
hle: kernel: KThread: Remove incorrect resource release.
5 years ago
bunnei
635fc8bda3
hle: kernel: KThread: Add missing resource hint release.
5 years ago
bunnei
11f9080d2e
hle: kernel: Migrate KSharedMemory to KAutoObject.
5 years ago
bunnei
2125abf6d9
hle: kernel: Migrate KThread to KAutoObject.
5 years ago
bunnei
75519d107f
hle: kernel: KThread: Rework dummy threads & fix memory leak.
- Dummy threads are created on thread local storage for all host threads.
- Fixes a leak by removing creation of fibers, which are not applicable here.
5 years ago
bunnei
845a217d5e
Revert "core: Switch to unique_ptr for usage of Common::Fiber."
5 years ago
bunnei
3322f10f84
core: Switch to unique_ptr for usage of Common::Fiber.
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context.
- Fixes a memory leak due to circular reference of the shared pointer.
5 years ago
bunnei
8c9e87ab66
hle: kernel: Migrate MemoryLayout to KMemoryLayout.
5 years ago
Chloe
e62886ead0
kernel: Unify result codes ( #5890 )
* kernel: Unify result codes
Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways.
* oops
* rename errors to svc_results
5 years ago
Chloe Marcec
6ff08eb44f
Simplify limitableresource names
5 years ago
Chloe Marcec
68a52e9050
kernel: Rewrite resource limit to be more accurate
Matches closer to hardware
5 years ago
bunnei
d09ade6cab
hle: kernel: KThread: Release thread resource on thread exit.
5 years ago
bunnei
a96667d30c
yuzu: debugger: Ignore HLE threads.
5 years ago
bunnei
cf3a05cf8c
hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling.
5 years ago
bunnei
67d28075dd
kernel: Fix build errors.
5 years ago
bunnei
f34dd04d09
hle: kernel: Recode implementation of KThread to be more accurate.
5 years ago
bunnei
4ba9d6f969
hle: kernel: KThread: Clean up thread priorities.
5 years ago
bunnei
0ae0bc4340
hle: kernel: KThread: Reorganize thread priority defaults.
5 years ago
bunnei
e74f682506
hle: kernel: KThread: Remove thread types that do not exist.
5 years ago
bunnei
3d70b4a4ea
core: hle: kernel: Rename Thread to KThread.
5 years ago
bunnei
e89be18c79
hle: kernel: thread: Preserve thread wait reason for debugging only.
- This is decoupled from core functionality and used for debugging only.
5 years ago
bunnei
e5cfd63ba4
core: hle: Integrate new KConditionVariable and KAddressArbiter implementations.
5 years ago
bunnei
9744afa8b1
hle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState.
- This is how the real kernel works, and is more accurate and simpler.
5 years ago
bunnei
2feb4d56e9
core: hle: kernel: Update KSynchronizationObject.
5 years ago
bunnei
de522657dd
hle: kernel: Migrate to KScopedSchedulerLock.
5 years ago
bunnei
61e017a026
hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler.
5 years ago
bunnei
039844bbb9
hle: kernel: Rewrite scheduler implementation based on Mesopshere.
5 years ago
bunnei
ba09b4d69d
hle: kernel: Port KAffinityMask from Mesosphere.
5 years ago
bunnei
b2de57e93e
hle: kernel: thread: Remove unused "Running" state.
5 years ago
bunnei
aaffe73f47
hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.
5 years ago
Lioncash
5c55f3b585
core: Remove usage of unicorn
Unicorn long-since lost most of its use, due to dynarmic gaining support
for handling most instructions. At this point any further issues
encountered should be used to make dynarmic better.
This also allows us to remove our dependency on Python.
5 years ago
bunnei
deb3536936
Revert "core: Fix clang build"
5 years ago
Lioncash
18636013c9
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
5 years ago
Lioncash
02ff5e8d81
cpu_manager: Mark function getters as static
All these do are return std::function instances of static functions, so
these can be used without an instance of the CPU manager.
6 years ago
Lioncash
7deb699566
kernel/thread: Remove global GetCurrentThread()
This is only used in one place, so we can fold it into the calling code,
eliminating a place for the global system instance to be used.
6 years ago
Fernando Sahmkow
555c4c238c
Kernel: Correct Host Context on Threads and Scheduler.
6 years ago
Fernando Sahmkow
6f0c873d48
General: Cleanup legacy code.
6 years ago
Fernando Sahmkow
f0f2fc4243
SingleCore: Use Cycle Timing instead of Host Timing.
6 years ago
Fernando Sahmkow
720858ba13
Thread: Release the ARM Interface on exitting.
6 years ago
Fernando Sahmkow
db60ca2704
General: Move ARM_Interface into Threads.
6 years ago
Fernando Sahmkow
cb974be3ce
General: Fix Stop function
6 years ago