summaryrefslogtreecommitdiff
path: root/src/tests/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core/memory: Migrate over memory mapping functions to the new Memory classGravatar Lioncash2019-11-261-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.
* core_timing: Use better reference tracking for EventType. (#3159)Gravatar bunnei2019-11-261-66/+18
| | | | | | | * core_timing: Use better reference tracking for EventType. - Moves ownership of the event to the caller, ensuring we don't fire events for destroyed objects. - Removes need for unique names - we won't be using this for save states anyways.
* Core_Timing: Fix tests.Gravatar Fernando Sahmkow2019-10-121-2/+2
|
* Core Timing: General corrections and added tests.Gravatar Fernando Sahmkow2019-10-091-3/+153
|
* Tests: Eliminate old Core Timing TestsGravatar Fernando Sahmkow2019-10-091-193/+0
|
* Merge pull request #2583 from FernandoS27/core-timing-safeGravatar bunnei2019-06-301-10/+10
|\ | | | | Core_Timing: Make core_timing threadsafe by default.
| * Core_Timing: Make core_timing threadsafe by default.Gravatar Fernando Sahmkow2019-06-161-10/+10
| | | | | | | | | | | | The old implementation had faulty Threadsafe methods where events could be missing. This implementation unifies unsafe/safe methods and makes core timing thread safe overall.
* | kernel: Differentiate kernel and user processes when picking IDGravatar Zach Hilman2019-06-101-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.
* kernel: Handle page table switching within MakeCurrentProcess()Gravatar Lioncash2019-04-071-2/+1
| | | | | Centralizes the page table switching to one spot, rather than making calling code deal with it everywhere.
* core: Move PageTable struct into Common.Gravatar bunnei2019-03-162-5/+6
|
* kernel: Make the address arbiter instance per-processGravatar Lioncash2019-03-071-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.
* kernel/address_arbiter: Pass in system instance to constructorGravatar Lioncash2019-03-051-3/+3
| | | | | Allows getting rid of reliance on the global accessor functions and instead operating on the provided system instance.
* core_timing: Convert core timing into a classGravatar Lioncash2019-02-151-103/+112
| | | | | | | | | | | 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.
* core_timing: Rename CoreTiming namespace to Core::TimingGravatar Lioncash2019-02-121-84/+85
| | | | | | 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.
* global: Use std::optional instead of boost::optional (#1578)Gravatar Frederic L2018-10-302-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
* kernel/thread: Use a regular pointer for the owner/current processGravatar Lioncash2018-10-101-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).
* kernel/process: Make data member variables privateGravatar Lioncash2018-09-301-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.
* memory: Dehardcode the use of a 36-bit address spaceGravatar Lioncash2018-09-241-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.
* Port #4182 from Citra: "Prefix all size_t with std::"Gravatar fearlessTobi2018-09-152-8/+9
|
* kernel: Eliminate kernel global stateGravatar Lioncash2018-08-282-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.
* externals: Update catch to 2.3.0Gravatar Lioncash2018-08-071-1/+1
| | | | Updates the library from 2.2.3 to 2.3.0
* core/memory: Get rid of 3DS leftoversGravatar Lioncash2018-08-031-56/+0
| | | | Removes leftover code from citra that isn't needed.
* arm_test_common: Get rid of truncation warningsGravatar Lioncash2018-07-201-2/+5
| | | | Explicitly cast the value to a u8 to show that this is intentional.
* arm_test_common: Make file static variable a member variable of the testing ↵Gravatar Lioncash2018-07-202-2/+5
| | | | | | environment Gets rid of file-static behavior.
* arm_test_common: Add missing header guardGravatar Lioncash2018-07-201-0/+2
|
* Virtual Filesystem 2: Electric Boogaloo (#676)Gravatar Zach Hilman2018-07-181-38/+0
| | | | | | | | | | * Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
* core: Move process creation out of global state.Gravatar bunnei2018-03-142-6/+6
|
* Kernel: Store the program id in the Process class instead of the CodeSet class.Gravatar Subv2018-03-012-5/+5
| | | | There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
* memory: Replace all memory hooking with Special regionsGravatar MerryMage2018-01-272-25/+29
|
* Fix build on macOS and linuxGravatar MerryMage2018-01-131-1/+1
|
* CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119)Gravatar B3n302018-01-081-0/+237
| | | | * CoreTiming: New CoreTiming; Add Test for CoreTiming
* arm: Remove SkyEye/Dyncom code that is ARMv6-only.Gravatar bunnei2018-01-022-13506/+0
|
* hle: Initial implementation of NX service framework and IPC.Gravatar bunnei2017-10-141-216/+0
|
* Merge remote-tracking branch 'upstream/master' into nxGravatar bunnei2017-10-095-0/+13783
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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 CoreTimingGravatar Huw Pascoe2017-09-301-1/+1
| |
| * Tests: Added Memory::IsValidVirtualAddress tests.Gravatar Subv2017-09-261-0/+56
| |
| * Tests: Fixed ARM VFP testsGravatar Subv2017-09-261-9/+13
| |
| * memory: Add GetCurrentPageTable/SetCurrentPageTableGravatar MerryMage2017-09-241-1/+1
| | | | | | | | Don't expose Memory::current_page_table as a global.
| * Tests/VFP: Use a standalone pagetable for the TestEnvironment memory operations.Gravatar Subv2017-09-151-4/+14
| | | | | | | | This fixes building the tests
| * tests: Add tests for vaddGravatar MerryMage2017-07-234-2/+13509
| |
| * tests: Arm testing frameworkGravatar MerryMage2017-07-232-0/+206
| |
* | nso: Refactor and allocate .bss section.Gravatar bunnei2017-09-301-2/+2
|/
* Kernel: Fix typo in test nameGravatar Yuri Kunde Schlesner2017-06-221-1/+1
|
* Kernel/IPC: Support translation of null handlesGravatar Yuri Kunde Schlesner2017-06-211-0/+23
| | | | | Missed this in my first implementation. Thanks to @wwylele for pointing out that this was missing.
* Kernel/IPC: Add tests for HLERequestContext buffer translationGravatar Yuri Kunde Schlesner2017-06-181-0/+193
|
* FileSys: add PathParserGravatar wwylele2016-11-191-0/+38