summaryrefslogtreecommitdiffstats
path: root/src/tests/core/arm (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-01memory: Remove MemoryHookMerryMage2-238/+0
2020-04-17arm_test_common: Updates for new VMM.bunnei1-6/+2
2019-11-27core/memory: Migrate over memory mapping functions to the new Memory classLioncash1-7/+8
Migrates all of the direct mapping facilities over to the new memory class. In the process, this also obsoletes the need for memory_setup.h, so we can remove it entirely from the project.
2019-06-10kernel: Differentiate kernel and user processes when picking IDZach Hilman1-1/+2
This allows kernel internal type processes to be assigned IDs in the KIP range while userland processes are assigned in the user range.
2019-04-07kernel: Handle page table switching within MakeCurrentProcess()Lioncash1-2/+1
Centralizes the page table switching to one spot, rather than making calling code deal with it everywhere.
2019-03-17core: Move PageTable struct into Common.bunnei2-5/+6
2019-03-08kernel: Make the address arbiter instance per-processLioncash1-1/+1
Now that we have the address arbiter extracted to its own class, we can fix an innaccuracy with the kernel. Said inaccuracy being that there isn't only one address arbiter. Each process instance contains its own AddressArbiter instance in the actual kernel. This fixes that and gets rid of another long-standing issue that could arise when attempting to create more than one process.
2019-03-05kernel/address_arbiter: Pass in system instance to constructorLioncash1-3/+3
Allows getting rid of reliance on the global accessor functions and instead operating on the provided system instance.
2018-10-30global: Use std::optional instead of boost::optional (#1578)Frederic L2-10/+10
* get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build
2018-10-10kernel/thread: Use a regular pointer for the owner/current processLioncash1-1/+2
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-09-30kernel/process: Make data member variables privateLioncash1-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-25memory: Dehardcode the use of a 36-bit address spaceLioncash1-2/+5
Given games can also request a 32-bit or 39-bit address space, we shouldn't be hardcoding the address space range as 36-bit.
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2-8/+9
2018-08-29kernel: Eliminate kernel global stateLioncash2-1/+3
As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
2018-07-20arm_test_common: Get rid of truncation warningsLioncash1-2/+5
Explicitly cast the value to a u8 to show that this is intentional.
2018-07-20arm_test_common: Make file static variable a member variable of the testing environmentLioncash2-2/+5
Gets rid of file-static behavior.
2018-07-20arm_test_common: Add missing header guardLioncash1-0/+2
2018-03-14core: Move process creation out of global state.bunnei1-2/+2
2018-03-02Kernel: Store the program id in the Process class instead of the CodeSet class.Subv1-1/+1
There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
2018-01-27memory: Replace all memory hooking with Special regionsMerryMage2-25/+29
2018-01-03arm: Remove SkyEye/Dyncom code that is ARMv6-only.bunnei2-13506/+0
2017-09-30Moved down_count to CoreTimingHuw Pascoe1-1/+1
2017-09-27Tests: Fixed ARM VFP testsSubv1-9/+13
2017-09-24memory: Add GetCurrentPageTable/SetCurrentPageTableMerryMage1-1/+1
Don't expose Memory::current_page_table as a global.
2017-09-15Tests/VFP: Use a standalone pagetable for the TestEnvironment memory operations.Subv1-4/+14
This fixes building the tests
2017-07-23tests: Add tests for vaddMerryMage4-2/+13509
2017-07-23tests: Arm testing frameworkMerryMage2-0/+206