Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-03-03 | core: Implement separate A32/A64 ARM interfaces. | bunnei | 1 | -9/+12 | |
2020-02-22 | Scheduler: Inline global scheduler in Scheduler Lock. | Fernando Sahmkow | 1 | -4/+2 | |
2020-02-22 | Kernel: Correct pending feedback. | Fernando Sahmkow | 1 | -3/+4 | |
2020-02-22 | Kernel: Address Feedback. | Fernando Sahmkow | 1 | -9/+12 | |
2020-02-22 | Kernel: Implement Scheduler locks | Fernando Sahmkow | 1 | -0/+48 | |
2020-02-22 | Kernel: Make global scheduler depend on KernelCore | Fernando Sahmkow | 1 | -3/+3 | |
2020-02-14 | Core: Address Feedback | Fernando Sahmkow | 1 | -2/+2 | |
2020-02-12 | Core: Set all hardware emulation constants in a single file. | Fernando Sahmkow | 1 | -6/+6 | |
2020-01-26 | Core: Refactor CpuCoreManager to CpuManager and Cpu to Core Manager. | Fernando Sahmkow | 1 | -1/+0 | |
This commit instends on better naming the new purpose of this classes. | |||||
2019-12-05 | CpuCore: Clear exclusive state after doing a run in dynarmic. | Fernando Sahmkow | 1 | -1/+0 | |
This commit corrects an error in which a Core could remain with an exclusive state after running, leaving space for possible race conditions between changing cores. | |||||
2019-11-25 | kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154) | bunnei | 1 | -5/+5 | |
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details. | |||||
2019-11-12 | kernel: Resolve sign conversion warnings | Lioncash | 1 | -23/+23 | |
Uncovered a bug within Thread's SetCoreAndAffinityMask() where an unsigned variable (ideal_core) was being compared against "< 0", which would always be a false condition. We can also get rid of an unused function (GetNextProcessorId) which contained a sign mismatch warning. | |||||
2019-10-28 | scheduler: Mark parameter of AskForReselectionOrMarkRedundant() as const | Lioncash | 1 | -4/+4 | |
This is only compared against, so it can be made const. | |||||
2019-10-28 | scheduler: Silence sign conversion warnings | Lioncash | 1 | -5/+5 | |
2019-10-28 | scheduler: Initialize class members directly where applicable | Lioncash | 1 | -5/+3 | |
Reduces the overall amount of code. | |||||
2019-10-28 | scheduler: Amend documentation comments | Lioncash | 1 | -29/+0 | |
Adjusts the formatting of a few of the comments an ensures they get recognized as proper Doxygen comments. | |||||
2019-10-15 | Kernel: Clang Format | Fernando Sahmkow | 1 | -1/+1 | |
2019-10-15 | Kernel: Address Feedback. | Fernando Sahmkow | 1 | -6/+47 | |
2019-10-15 | Kernel Scheduler: Make sure the global scheduler shutdowns correctly. | Fernando Sahmkow | 1 | -0/+8 | |
2019-10-15 | Kernel: Clang Format | Fernando Sahmkow | 1 | -1/+2 | |
2019-10-15 | Kernel: Remove global system accessor from WaitObject | Fernando Sahmkow | 1 | -1/+1 | |
2019-10-15 | Scheduler: Implement Yield Count and Core migration on Thread Preemption. | Fernando Sahmkow | 1 | -5/+76 | |
2019-10-15 | Scheduler: Corrections to YieldAndBalanceLoad and Yield bombing protection. | Fernando Sahmkow | 1 | -7/+7 | |
2019-10-15 | Kernel: Initial implementation of thread preemption. | Fernando Sahmkow | 1 | -0/+10 | |
2019-10-15 | Scheduler: Add protections for Yield bombing | Fernando Sahmkow | 1 | -7/+9 | |
In case of redundant yields, the scheduler will now idle the core for it's timeslice, in order to avoid continuously yielding the same thing over and over. | |||||
2019-10-15 | Kernel: Style and Corrections | Fernando Sahmkow | 1 | -30/+48 | |
2019-10-15 | Comment and reorganize the scheduler | Fernando Sahmkow | 1 | -93/+71 | |
2019-10-15 | Implement a new Core Scheduler | Fernando Sahmkow | 1 | -155/+294 | |
2019-04-07 | kernel: Handle page table switching within MakeCurrentProcess() | Lioncash | 1 | -1/+0 | |
Centralizes the page table switching to one spot, rather than making calling code deal with it everywhere. | |||||
2019-03-30 | kernel/scheduler: Remove unused parameter to AddThread() | Lioncash | 1 | -1/+1 | |
This was made unused in b404fcdf1443b91ac9994c05ad1fe039fcd9675e, but the parameter itself wasn't removed. | |||||
2019-03-30 | kernel/scheduler: Use deduction guides on mutex locks | Lioncash | 1 | -8/+8 | |
Since C++17, we no longer need to explicitly specify the type of the mutex within the lock_guard. The type system can now deduce these with deduction guides. | |||||
2019-03-27 | Fixes and corrections on formatting. | Fernando Sahmkow | 1 | -6/+9 | |
2019-03-27 | Use MultiLevelQueue instead of old ThreadQueueList | Fernando Sahmkow | 1 | -17/+22 | |
2019-03-17 | core: Move PageTable struct into Common. | bunnei | 1 | -1/+1 | |
2019-03-16 | kernel/thread: Migrate WaitCurrentThread_Sleep into the Thread interface | Lioncash | 1 | -4/+2 | |
Rather than make a global accessor for this sort of thing. We can make it a part of the thread interface itself. This allows getting rid of a hidden global accessor in the kernel code. | |||||
2019-03-04 | kernel/scheduler: Pass in system instance in constructor | Lioncash | 1 | -7/+7 | |
Avoids directly relying on the global system instance and instead makes an arbitrary system instance an explicit dependency on construction. This also allows removing dependencies on some global accessor functions as well. | |||||
2019-02-16 | core_timing: Convert core timing into a class | Lioncash | 1 | -1/+1 | |
Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces. | |||||
2019-02-12 | core_timing: Rename CoreTiming namespace to Core::Timing | Lioncash | 1 | -1/+1 | |
Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace. | |||||
2018-12-04 | scheduler: Avoid manual Reschedule call | Zach Hilman | 1 | -10/+8 | |
This will automatically occur anyway when PrepareReschedule is called | |||||
2018-12-03 | scheduler: Only work steal higher priority threads from other cores | Zach Hilman | 1 | -21/+17 | |
2018-12-02 | svc: Avoid performance-degrading unnecessary reschedule | Zach Hilman | 1 | -1/+2 | |
2018-11-22 | scheduler: Add explanations for YieldWith and WithoutLoadBalancing | Zach Hilman | 1 | -4/+57 | |
2018-11-19 | svc: Implement yield types 0 and -1 | Zach Hilman | 1 | -0/+18 | |
2018-10-26 | svc: Implement svcGetInfo command 0xF0000002 | Lioncash | 1 | -3/+25 | |
This retrieves: if (curr_thread == handle_thread) { result = total_thread_ticks + (hardware_tick_count - last_context_switch_ticks); } else if (curr_thread == handle_thread && sub_id == current_core_index) { result = hardware_tick_count - last_context_switch_ticks; } | |||||
2018-10-10 | kernel/thread: Use a regular pointer for the owner/current process | Lioncash | 1 | -4/+4 | |
There's no real need to use a shared pointer in these cases, and only makes object management more fragile in terms of how easy it would be to introduce cycles. Instead, just do the simple thing of using a regular pointer. Much of this is just a hold-over from citra anyways. It also doesn't make sense from a behavioral point of view for a process' thread to prolong the lifetime of the process itself (the process is supposed to own the thread, not the other way around). | |||||
2018-10-04 | kernel/thread: Make all instance variables private | Lioncash | 1 | -18/+18 | |
Many of the member variables of the thread class aren't even used outside of the class itself, so there's no need to make those variables public. This change follows in the steps of the previous changes that made other kernel types' members private. The main motivation behind this is that the Thread class will likely change in the future as emulation becomes more accurate, and letting random bits of the emulator access data members of the Thread class directly makes it a pain to shuffle around and/or modify internals. Having all data members public like this also makes it difficult to reason about certain bits of behavior without first verifying what parts of the core actually use them. Everything being public also generally follows the tendency for changes to be introduced in completely different translation units that would otherwise be better introduced as an addition to the Thread class' public interface. | |||||
2018-09-30 | kernel/process: Make data member variables private | Lioncash | 1 | -1/+1 | |
Makes the public interface consistent in terms of how accesses are done on a process object. It also makes it slightly nicer to reason about the logic of the process class, as we don't want to expose everything to external code. | |||||
2018-09-25 | kernel/scheduler: Take ARM_Interface instance by reference in the constructor | Lioncash | 1 | -7/+7 | |
It doesn't make sense to allow a scheduler to be constructed around a null pointer. | |||||
2018-08-25 | core: Namespace all code in the arm subdirectory under the Core namespace | Lioncash | 1 | -1/+1 | |
Gets all of these types and interfaces out of the global namespace. | |||||
2018-08-12 | scheduler: Make HaveReadyThreads() a const member function | Lioncash | 1 | -1/+1 | |
This function doesn't modify instance state, so the const qualifier can be added to it. | |||||
2018-07-31 | kernel: Remove unnecessary includes | Lioncash | 1 | -0/+4 | |
Removes unnecessary direct dependencies in some headers and also gets rid of indirect dependencies that were being relied on to be included. | |||||
2018-07-21 | CPU: Save and restore the TPIDR_EL0 system register on every context switch. | Subv | 1 | -0/+3 | |
Note that there's currently a dynarmic bug preventing this register from being written. | |||||
2018-07-20 | thread: Convert ThreadStatus into an enum class | Lioncash | 1 | -8/+8 | |
Makes the thread status strongly typed, so implicit conversions can't happen. It also makes it easier to catch mistakes at compile time. | |||||
2018-07-19 | core/memory, core/hle/kernel: Use std::move where applicable | Lioncash | 1 | -1/+3 | |
Avoids pointless copies | |||||
2018-07-16 | scheduler: Clear exclusive state when switching contexts | MerryMage | 1 | -0/+1 | |
2018-07-03 | Rename logging macro back to LOG_* | James Rowe | 1 | -3/+3 | |
2018-05-11 | scheduler: Protect scheduling functions with a global mutex. | bunnei | 1 | -0/+15 | |
2018-04-26 | kernel: Migrate logging macros to fmt-compatible ones | Lioncash | 1 | -3/+3 | |
2018-03-14 | core: Move process creation out of global state. | bunnei | 1 | -3/+4 | |
2018-02-19 | scheduler: Cleanup based on PR feedback. | bunnei | 1 | -1/+1 | |
2018-02-18 | kernel: Add Scheduler, which encapsulates the scheduling loading from Thread module. | bunnei | 1 | -0/+134 | |