summaryrefslogtreecommitdiffstats
path: root/src/core/arm/dynarmic/arm_dynarmic.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-12-26core: track separate heap allocation for linuxLiam1-0/+20
2023-06-13core: decouple ARM interface from DynarmicLiam1-0/+29
2020-03-03core: Implement separate A32/A64 ARM interfaces.bunnei1-96/+0
2020-02-26ARM_Interface: Cache the JITs instead of deleting/recreating.Fernando Sahmkow1-2/+10
This was a bug inherited from citra which was fixed by then at some time. This commit corrects such bug and ensures JITs are correctly recycled.
2019-11-27core/memory: Migrate over Write{8, 16, 32, 64, Block} to the Memory classLioncash1-1/+6
The Write functions are used slightly less than the Read functions, which make these a bit nicer to move over. The only adjustments we really need to make here are to Dynarmic's exclusive monitor instance. We need to keep a reference to the currently active memory instance to perform exclusive read/write operations.
2019-11-27core: Prepare various classes for memory read/write migrationLioncash1-1/+0
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.
2019-07-11core/arm: Remove obsolete Unicorn memory mappingLioncash1-3/+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.
2019-04-12core/cpu_core_manager: Create threads separately from initialization.Lioncash1-2/+4
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.
2019-04-08kernel/svc: Deglobalize the supervisor call handlersLioncash1-7/+3
Adjusts the interface of the wrappers to take a system reference, which allows accessing a system instance without using the global accessors. This also allows getting rid of all global accessors within the supervisor call handling code. While this does make the wrappers themselves slightly more noisy, this will be further cleaned up in a follow-up. This eliminates the global system accessors in the current code while preserving the existing interface.
2019-04-07arm/arm_dynarmic: Remove unnecessary current_page_table memberLioncash1-6/+0
Given the page table will always be guaranteed to be that of whatever the current process is, we no longer need to keep this around.
2019-04-04core: Add missing override specifiers where applicableLioncash1-2/+2
Applies the override specifier where applicable. In the case of destructors that are defaulted in their definition, they can simply be removed. This also removes the unnecessary inclusions being done in audin_u and audrec_u, given their close proximity.
2019-03-17core: Move PageTable struct into Common.bunnei1-2/+2
2019-02-16core_timing: Convert core timing into a classLioncash1-1/+7
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.
2018-12-19Moved backtrace to ArmInterfaceDavid Marcec1-2/+0
2018-12-03Moved backtrace to ArmInterfaceDavid Marcec1-0/+2
Added to both dynarmic and unicorn
2018-10-15core: Make the exclusive monitor a unique_ptr instead of a shared_ptrLioncash1-2/+2
Like the barrier, this is owned entirely by the System and will always outlive the encompassing state, so shared ownership semantics aren't necessary here.
2018-09-21arm_interface: Replace kernel vm_manager include with a forward declarationLioncash1-0/+4
Avoids an unnecessary inclusion and also uncovers three places where indirect inclusions were relied upon, which allows us to also resolve those.
2018-09-18arm_interface: Remove ARM11-isms from the CPU interfaceLioncash1-6/+4
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.
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-11/+11
2018-08-25core: Namespace all code in the arm subdirectory under the Core namespaceLioncash1-0/+4
Gets all of these types and interfaces out of the global namespace.
2018-07-24arm_dynarmic: Make MakeJit() a const member functionLioncash1-1/+1
This functions doesn't modify instance state, so it can be a made a const member function.
2018-07-24exclusive_monitor: Use consistent type alias for u64Lioncash1-7/+6
Uses the same type aliases we use for virtual addresses, and converts one lingering usage of std::array<uint64_t, 2> to u128 for consistency.
2018-07-22Implement exclusive monitorMerryMage1-1/+29
2018-07-21CPU: Save and restore the TPIDR_EL0 system register on every context switch.Subv1-0/+2
Note that there's currently a dynarmic bug preventing this register from being written.
2018-07-16scheduler: Clear exclusive state when switching contextsMerryMage1-0/+1
2018-03-16arm_interface: Support unmapping previously mapped memory.bunnei1-1/+1
2018-02-25Implements citra-emu/citra#3184N00byKing1-1/+4
2018-02-09dynarmic: Update to 41ae12263MerryMage1-1/+1
Changes: Primarily implementing more A64 instructions
2018-01-13yuzu: Update license text to be consistent across project.bunnei1-1/+1
2018-01-12arm_dynarmic: Implement coreMerryMage1-2/+14
2018-01-04arm_dynarmic: More cleanup.bunnei1-6/+0
2018-01-04arm_dynarmic: Gut interface until dynarmic is ready for general use.bunnei1-8/+3
2018-01-03arm: Remove SkyEye/Dyncom code that is ARMv6-only.bunnei1-6/+1
2017-09-30arm_interface: Set TLS address for dynarmic core.bunnei1-0/+2
2017-09-30arm: Use 64-bit addressing in a bunch of places.bunnei1-4/+4
2017-09-30Moved down_count to CoreTimingHuw Pascoe1-2/+0
2017-09-25ARM_Interface: Implement PageTableChangedMerryMage1-1/+9
2017-02-03arm_dynarmic: CP15 supportMerryMage1-1/+1
2016-12-22ThreadContext: Move from "core" to "arm_interface".bunnei1-6/+2
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-15arm: ResetContext shouldn't be part of ARM_Interface.bunnei1-1/+0
2016-09-15arm_dynarmic/arm_dyncom: Remove unnecessary "virtual" keyword.bunnei1-1/+1
2016-09-15dynarmic: Implement ARM CPU interface.bunnei1-8/+9
2016-08-27ARM: add ClearInstructionCache functionwwylele1-0/+2
2015-08-07arm_interface: Implement interface for retrieving VFP registersLioncash1-0/+4
2015-07-26dyncom: Rename armdefs.h to armstate.hLioncash1-1/+1
2015-06-28Core: Cleanup core includes.Emmanuel Gil Peyrot1-0/+5
2015-05-11fixup! Set the TLS address in the schedulerSubv1-1/+1
2015-05-11Core/Memory: Give every emulated thread it's own TLS area.Subv1-1/+1
The TLS area for thread T with id Ti is located at TLS_AREA_VADDR + (Ti - 1) * 0x200. This allows some games like Mario Kart 7 to continue further.
2015-04-14Headers: Add some forgotten overrides, thanks clang!Emmanuel Gil Peyrot1-1/+1
2015-04-06arm_interface: Support retrieval/storage to CP15 registersLioncash1-0/+2
2015-03-16arm_interface: Get rid of GetTicks.Lioncash1-1/+0
Removes a TODO.
2015-02-13dyncom: Switch the app and system cores into the correct mode at initializationLioncash1-1/+1
2015-02-10Scheduler refactor Pt. 1Kevin Hartman1-56/+1
* 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.
2015-01-09Move ThreadContext to core/core.h and deal with the falloutYuri Kunde Schlesner1-2/+2
2015-01-09Timing: Use CoreTiming::GetTicks to keep track of ticks.Subv1-3/+0
This will keep track of idle ticks for us, and fixes some tickcount-related issues
2014-12-26ARM: Add a mechanism for faking CPU time elapsed during HLE.bunnei1-4/+10
- Also a few cleanups.
2014-12-21License changepurpasmart961-1/+1
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot1-1/+1
2014-11-18Fix documentation of parametersLioncash1-1/+1
2014-10-26Add `override` keyword through the code.Yuri Kunde Schlesner1-7/+7
This was automated using `clang-modernize`.
2014-10-25ARM: Integrate SkyEye faster "dyncom" interpreter.bunnei1-8/+8
Fixed typo (make protected member public) Added license header back in. I originally removed this because I mostly rewrote the file, but meh ARM: Fixed a type error in dyncom interpreter. ARM: Updated dyncom to use unique_ptr for internal ARM state.
2014-10-25ARM: Reorganized file structure to move shared SkyEye code to a more common area.bunnei1-2/+2
Removed s_ prefix
2014-06-02arm: added option to prepare CPU core (while mid-instruction) for thread reschedulebunnei1-0/+3
2014-05-21ARM_Interpreter/ARM_Interface: Fixed member variable naming to be consistent with style guidebunnei1-1/+1
2014-05-21ARM_Interface: added SaveContext and LoadContext functions for HLE thread switchingbunnei1-0/+12
2014-05-17updated how we call ARM core to make things much fasterbunnei1-2/+5
2014-05-12added option to set CPSR register to arm_interfacebunnei1-0/+6
2014-04-28removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable classbunnei1-1/+0
2014-04-11cleaned up arm_interface, added a setter to set registers for use with HLE return valuesbunnei1-2/+35
2014-04-09fixed licensing and updated code style naming for arm_interface/arm_interpreter frontend modulebunnei1-30/+8
2014-04-09fixed project includes to use new directory structurebunnei1-5/+4
2014-04-09got rid of 'src' folders in each sub-projectbunnei1-0/+0
2014-04-05changed hw_lcd to use ARM core correct tick counter instead of [what was actually] just an instruction count. this seems to fix timing issues with the 3DS_Homebrew_Pong3Dv2 demo.bunnei1-0/+7
2014-04-05- added an interface layer for ARM coresbunnei1-28/+21
- cleaned up core.cpp a bit
2013-10-06fixed a typo in declaration of meta file systemShizZy1-2/+2
2013-10-03moved some core functions over to system moduleShizZy1-1/+6
2013-10-02added core_timing and system modules to core vcprojShizZy1-0/+52