Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: arm: Implement InvalidateCacheRange for CPU cache invalidation. | bunnei | 2020-11-29 | 1 | -6/+13 |
| | |||||
* | hle: kernel: multicore: Replace n-JITs impl. with 4 JITs. | bunnei | 2020-11-29 | 1 | -0/+3 |
| | |||||
* | Revert "core: Fix clang build" | bunnei | 2020-10-21 | 1 | -4/+4 |
| | |||||
* | core: Fix clang build | Lioncash | 2020-10-18 | 1 | -4/+4 |
| | | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795 | ||||
* | Core/Common: Address Feedback. | Fernando Sahmkow | 2020-06-28 | 1 | -1/+1 |
| | |||||
* | SVC: Implement 32-bits wrappers and update Dynarmic. | Fernando Sahmkow | 2020-06-27 | 1 | -3/+2 |
| | |||||
* | SingleCore: Use Cycle Timing instead of Host Timing. | Fernando Sahmkow | 2020-06-27 | 1 | -2/+4 |
| | |||||
* | General: Move ARM_Interface into Threads. | Fernando Sahmkow | 2020-06-27 | 1 | -0/+2 |
| | |||||
* | Core: Refactor ARM Interface. | Fernando Sahmkow | 2020-06-27 | 1 | -3/+6 |
| | |||||
* | ARM/WaitTree: Better track the CallStack for each thread. | Fernando Sahmkow | 2020-06-27 | 1 | -0/+3 |
| | |||||
* | Scheduler: Remove arm_interface lock and a few corrections. | Fernando Sahmkow | 2020-06-27 | 1 | -10/+0 |
| | |||||
* | General: Add better safety for JIT use. | Fernando Sahmkow | 2020-06-27 | 1 | -0/+10 |
| | |||||
* | General: Recover Prometheus project from harddrive failure | Fernando Sahmkow | 2020-06-27 | 1 | -1/+4 |
| | | | | | | | This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system. | ||||
* | arm_interface: Ensure ThreadContext is zero'd out. | bunnei | 2020-04-17 | 1 | -16/+16 |
| | |||||
* | core: Implement separate A32/A64 ARM interfaces. | bunnei | 2020-03-03 | 1 | -13/+19 |
| | |||||
* | core: Prepare various classes for memory read/write migration | Lioncash | 2019-11-27 | 1 | -1/+7 |
| | | | | | | | | | | Amends a few interfaces to be able to handle the migration over to the new Memory class by passing the class by reference as a function parameter where necessary. Notably, within the filesystem services, this eliminates two ReadBlock() calls by using the helper functions of HLERequestContext to do that for us. | ||||
* | core/arm: Remove obsolete Unicorn memory mapping | Lioncash | 2019-07-11 | 1 | -7/+0 |
| | | | | | | | | This was initially necessary when AArch64 JIT emulation was in its infancy and all memory-related instructions weren't implemented. Given the JIT now has all of these facilities implemented, we can remove these functions from the CPU interface. | ||||
* | arm_interface: Expand backtrace generation | Zach Hilman | 2019-05-25 | 1 | -0/+11 |
| | | | | Returns results as a vector of entries for further processing. Logs addresses, offsets, and mangled name. | ||||
* | core/cpu_core_manager: Create threads separately from initialization. | Lioncash | 2019-04-12 | 1 | -2/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our initialization process is a little wonky than one would expect when it comes to code flow. We initialize the CPU last, as opposed to hardware, where the CPU obviously needs to be first, otherwise nothing else would work, and we have code that adds checks to get around this. For example, in the page table setting code, we check to see if the system is turned on before we even notify the CPU instances of a page table switch. This results in dead code (at the moment), because the only time a page table switch will occur is when the system is *not* running, preventing the emulated CPU instances from being notified of a page table switch in a convenient manner (technically the code path could be taken, but we don't emulate the process creation svc handlers yet). This moves the threads creation into its own member function of the core manager and restores a little order (and predictability) to our initialization process. Previously, in the multi-threaded cases, we'd kick off several threads before even the main kernel process was created and ready to execute (gross!). Now the initialization process is like so: Initialization: 1. Timers 2. CPU 3. Kernel 4. Filesystem stuff (kind of gross, but can be amended trivially) 5. Applet stuff (ditto in terms of being kind of gross) 6. Main process (will be moved into the loading step in a following change) 7. Telemetry (this should be initialized last in the future). 8. Services (4 and 5 should ideally be alongside this). 9. GDB (gross. Uses namespace scope state. Needs to be refactored into a class or booted altogether). 10. Renderer 11. GPU (will also have its threads created in a separate step in a following change). Which... isn't *ideal* per-se, however getting rid of the wonky intertwining of CPU state initialization out of this mix gets rid of most of the footguns when it comes to our initialization process. | ||||
* | arm_interface: Make LogBacktrace() a const member function | Lioncash | 2018-12-31 | 1 | -1/+1 |
| | | | | This function doesn't modify instance state, so it can be made const. | ||||
* | Moved log backtrace to arm_interface.cpp. Added printing of error code to fatal | David Marcec | 2018-12-29 | 1 | -17/+7 |
| | |||||
* | Moved backtrace to ArmInterface | David Marcec | 2018-12-19 | 1 | -1/+17 |
| | |||||
* | Moved backtrace to ArmInterface | David Marcec | 2018-12-03 | 1 | -0/+2 |
| | | | | Added to both dynarmic and unicorn | ||||
* | arm_interface: Add missing fpsr/tpidr members to the ThreadContext struct | Lioncash | 2018-09-30 | 1 | -2/+8 |
| | | | | | | | | | Internally within the kernel, it also includes a member variable for the floating-point status register, and TPIDR, so we should do the same here to match it. While we're at it, also fix up the size of the struct and add a static assertion to ensure it always stays the correct size. | ||||
* | arm_interface: Replace kernel vm_manager include with a forward declaration | Lioncash | 2018-09-21 | 1 | -1/+4 |
| | | | | | | Avoids an unnecessary inclusion and also uncovers three places where indirect inclusions were relied upon, which allows us to also resolve those. | ||||
* | arm_interface: Remove ARM11-isms from the CPU interface | Lioncash | 2018-09-18 | 1 | -22/+31 |
| | | | | | | | | | This modifies the CPU interface to more accurately match an AArch64-supporting CPU as opposed to an ARM11 one. Two of the methods don't even make sense to keep around for this interface, as Adv Simd is used, rather than the VFP in the primary execution state. This is essentially a modernization change that should have occurred from the get-go. | ||||
* | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 2018-09-15 | 1 | -2/+2 |
| | |||||
* | core: Namespace all code in the arm subdirectory under the Core namespace | Lioncash | 2018-08-25 | 1 | -0/+4 |
| | | | | Gets all of these types and interfaces out of the global namespace. | ||||
* | Merge pull request #750 from lioncash/ctx | bunnei | 2018-07-21 | 1 | -3/+0 |
|\ | | | | | arm_interface: Remove unused tls_address member of ThreadContext | ||||
| * | arm_interface: Remove unused tls_address member of ThreadContext | Lioncash | 2018-07-21 | 1 | -3/+0 |
| | | | | | | | | | | Currently, the TLS address is set within the scheduler, making this member unused. | ||||
* | | CPU: Save and restore the TPIDR_EL0 system register on every context switch. | Subv | 2018-07-21 | 1 | -0/+4 |
|/ | | | | Note that there's currently a dynarmic bug preventing this register from being written. | ||||
* | scheduler: Clear exclusive state when switching contexts | MerryMage | 2018-07-16 | 1 | -0/+2 |
| | |||||
* | Merge pull request #193 from N00byKing/3184_2_robotic_boogaloo | bunnei | 2018-03-19 | 1 | -26/+3 |
|\ | | | | | Implement Pull #3184 from citra: core/arm: Improve timing accuracy before service calls in JIT (Rebased) | ||||
| * | Implements citra-emu/citra#3184 | N00byKing | 2018-02-25 | 1 | -26/+3 |
| | | |||||
* | | arm_interface: Support unmapping previously mapped memory. | bunnei | 2018-03-16 | 1 | -1/+5 |
|/ | |||||
* | clang-format | MerryMage | 2018-01-16 | 1 | -1/+2 |
| | |||||
* | arm_dynarmic: Implement core | MerryMage | 2018-01-12 | 1 | -7/+5 |
| | |||||
* | arm: Remove SkyEye/Dyncom code that is ARMv6-only. | bunnei | 2018-01-03 | 1 | -30/+0 |
| | |||||
* | Merge remote-tracking branch 'upstream/master' into nx | bunnei | 2017-10-10 | 1 | -10/+12 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/core/CMakeLists.txt # src/core/arm/dynarmic/arm_dynarmic.cpp # src/core/arm/dyncom/arm_dyncom.cpp # src/core/hle/kernel/process.cpp # src/core/hle/kernel/thread.cpp # src/core/hle/kernel/thread.h # src/core/hle/kernel/vm_manager.cpp # src/core/loader/3dsx.cpp # src/core/loader/elf.cpp # src/core/loader/ncch.cpp # src/core/memory.cpp # src/core/memory.h # src/core/memory_setup.h | ||||
| * | Moved down_count to CoreTiming | Huw Pascoe | 2017-09-30 | 1 | -9/+0 |
| | | |||||
| * | ARM_Interface: Implement PageTableChanged | MerryMage | 2017-09-25 | 1 | -0/+3 |
| | | |||||
* | | arm_interface: Set TLS address for dynarmic core. | bunnei | 2017-09-30 | 1 | -0/+7 |
| | | |||||
* | | arm: Use 64-bit addressing in a bunch of places. | bunnei | 2017-09-30 | 1 | -14/+14 |
|/ | |||||
* | ThreadContext: Move from "core" to "arm_interface". | bunnei | 2016-12-22 | 1 | -6/+13 |
| | |||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 1 | -2/+1 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 1 | -4/+3 |
| | |||||
* | arm: ResetContext shouldn't be part of ARM_Interface. | bunnei | 2016-09-15 | 1 | -9/+0 |
| | |||||
* | ARM: add ClearInstructionCache function | wwylele | 2016-08-27 | 1 | -0/+3 |
| | |||||
* | Set fpscr for new threads | Jannik Vogel | 2016-05-17 | 1 | -0/+1 |
| | |||||
* | arm_interface: Make GetNumInstructions const | Lioncash | 2015-12-06 | 1 | -1/+1 |
| | |||||
* | arm_interface: directly initialize class members | Lioncash | 2015-12-06 | 1 | -7/+2 |
| | |||||
* | arm_interface: Implement interface for retrieving VFP registers | Lioncash | 2015-08-07 | 1 | -0/+28 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -1/+0 |
| | |||||
* | arm_interface: Support retrieval/storage to CP15 registers | Lioncash | 2015-04-06 | 1 | -0/+15 |
| | |||||
* | arm_interface: Get rid of GetTicks. | Lioncash | 2015-03-16 | 1 | -6/+0 |
| | | | | Removes a TODO. | ||||
* | Scheduler refactor Pt. 1 | Kevin Hartman | 2015-02-10 | 1 | -0/+9 |
| | | | | | | | | | | | | | * Simplifies scheduling logic, specifically regarding thread status. It should be much clearer which statuses are valid for a thread at any given point in the system. * Removes dead code from thread.cpp. * Moves the implementation of resetting a ThreadContext to the corresponding core's implementation. Other changes: * Fixed comments in arm interfaces. * Updated comments in thread.cpp * Removed confusing, useless, functions like MakeReady() and ChangeStatus() from thread.cpp. * Removed stack_size from Thread. In the CTR kernel, the thread's stack would be allocated before thread creation. | ||||
* | Move ThreadContext to core/core.h and deal with the fallout | Yuri Kunde Schlesner | 2015-01-09 | 1 | -3/+5 |
| | |||||
* | CoreTiming: Ported the CoreTiming namespace from PPSSPP | Subv | 2015-01-07 | 1 | -0/+2 |
| | | | | | | Implemented the required calls to make it work. CoreTiming: Added a new logging class Core_Timing. | ||||
* | ARM: Add a mechanism for faking CPU time elapsed during HLE. | bunnei | 2014-12-26 | 1 | -0/+6 |
| | | | | - Also a few cleanups. | ||||
* | License change | purpasmart96 | 2014-12-21 | 1 | -1/+1 |
| | |||||
* | Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated | Emmanuel Gil Peyrot | 2014-11-19 | 1 | -3/+3 |
| | |||||
* | ARM_Interface: Make destructor virtual | Lioncash | 2014-11-14 | 1 | -1/+1 |
| | | | | Fixes some warnings on OSX. | ||||
* | Merge branch 'threading' of https://github.com/bunnei/citra | bunnei | 2014-06-14 | 1 | -0/+3 |
|\ | | | | | | | | | | | Conflicts: src/core/hle/function_wrappers.h src/core/hle/service/gsp.cpp | ||||
| * | arm: added option to prepare CPU core (while mid-instruction) for thread reschedule | bunnei | 2014-06-02 | 1 | -0/+3 |
| | | |||||
* | | Added 'this' reference to num_instructions field so it's properly updated,as before the method was affecting the local method parameter rather than the class field | Disruption | 2014-06-01 | 1 | -1/+1 |
|/ | |||||
* | ARM_Interpreter/ARM_Interface: Fixed member variable naming to be consistent with style guide | bunnei | 2014-05-21 | 1 | -5/+5 |
| | |||||
* | ARM_Interface: added SaveContext and LoadContext functions for HLE thread switching | bunnei | 2014-05-21 | 1 | -1/+15 |
| | |||||
* | Merge branch 'master' into threading | bunnei | 2014-05-17 | 1 | -5/+16 |
|\ | |||||
| * | updated how we call ARM core to make things much faster | bunnei | 2014-05-17 | 1 | -5/+16 |
| | | |||||
* | | added option to set CPSR register to arm_interface | bunnei | 2014-05-12 | 1 | -0/+6 |
|/ | |||||
* | removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable class | bunnei | 2014-04-28 | 1 | -2/+1 |
| | |||||
* | missed this file with commit 95e5436f | bunnei | 2014-04-11 | 1 | -1/+10 |
| | |||||
* | fixed licensing and updated code style naming for arm_interface/arm_interpreter frontend module | bunnei | 2014-04-09 | 1 | -9/+11 |
| | |||||
* | fixed project includes to use new directory structure | bunnei | 2014-04-09 | 1 | -2/+2 |
| | |||||
* | got rid of 'src' folders in each sub-project | bunnei | 2014-04-09 | 1 | -0/+68 |