summaryrefslogtreecommitdiffstats
path: root/src/core/arm/dynarmic/arm_dynarmic_64.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-12-26core: track separate heap allocation for linuxLiam1-0/+5
2023-12-23kernel: instantiate memory separately for each guest processLiam1-3/+3
2023-12-04core: refactor emulated cpu core activationLiam1-199/+141
2023-07-22core: remove remaining uses of dynamic_castLiam1-3/+3
2023-07-21settings,general: Rename non-confirming enumslat9nq1-3/+3
2023-06-13core: decouple ARM interface from DynarmicLiam1-49/+15
2023-03-24memory: rename global memory references to application memoryLiam1-3/+3
2023-03-22kernel: use KTypedAddress for addressesLiam1-4/+4
2023-01-06externals: update dynarmic, xbyakLiam1-0/+4
2022-12-02core: add option to break on unmapped accessLiam1-2/+19
2022-11-17Dynarmic: Remove inaccurate NaN from Auto CPU settings.Fernando Sahmkow1-1/+0
2022-10-27arm_interface: curb infinite recursion in stacktrace generationLiam1-1/+1
2022-10-12k_server_session: preliminary support for userspace server sessionsLiam1-0/+1
2022-08-09arm_dynarmic: Fix nullptr fastmem arenasMerry1-1/+2
Unable to enable fastmem of exclusive access without a valid fastmem arena.
2022-08-08core/arm: fix build errorLiam1-1/+5
2022-07-25kernel: unlayer CPU interrupt handlingLiam1-5/+7
2022-07-16core/arm: skip watchpoint checks when reading instructionsLiam1-3/+3
2022-07-15dynarmic: Abort watchpoints ASAPMerry1-3/+1
2022-06-25core/arm: better support for backtrace generationLiam1-8/+9
2022-06-22core/arm: increase minimum_run_cyclesLiam1-1/+1
2022-06-22core/arm: re-enable cycle countingmerry1-3/+10
2022-06-22dynarmic: Stop ReadCode callbacks to unmapped addressesLiam1-7/+21
2022-06-16core/debugger: memory breakpoint supportLiam1-14/+65
2022-06-01core/debugger: Improved stepping mechanism and misc fixesLiam1-34/+11
2022-06-01core/debugger: Implement new GDB stub debuggerLiam1-5/+27
2022-04-24Remove unused PrepareReschedule functionMerry1-4/+0
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-21core/arm: separate backtrace collectionLiam1-0/+38
2022-04-13dynarmic: Fix single core modemerry1-1/+1
Regression introduced in a5d040df3d. Closes #8201.
2022-04-10dynarmic: Fix race when switching page tablesmerry1-35/+45
2022-04-05dynarmic: Print stack trace on unrecognised instruction or other exceptionmerry1-0/+2
2022-04-03arm_dynarmic: Use HaltReason for svc calls and reschedulesmerry1-11/+10
2022-04-03dynarmic: Better interruptsmerry1-11/+10
2022-03-27arm_dynarmic_64: Invalidate on all coresmerry1-2/+4
2022-03-26configuration: Add Paranoid CPU accuracy levelmerry1-22/+28
Disables most optimizations for the paranoid.
2022-03-23Revert "dynarmic: Reduce size of code caches"bunnei1-2/+2
2022-03-13dynarmic: Reduce size of code cachesMerry1-2/+2
2022-02-27dynarmic: Inline exclusive memory accessesmerry1-0/+13
Inlines implementation of exclusive instructions into JITted code, improving performance of applications relying heavily on these instructions. We also fastmem these instructions for additional speed, with support for appropriate recompilation on fastmem failure. An unsafe optimization to disable the intercore global_monitor is also provided, should one wish to rely solely on cmpxchg semantics for safety. See also: merryhime/dynarmic#664
2021-11-22arm: dynarmic: Cleanup icache op handlingjam1garner1-10/+9
2021-11-22arm: dynarmic: Implement icache op handling for 'ic iallu' instructionjam1garner1-0/+3
2021-11-22arm: dynarmic: Implement icache op handling for 'ic ivau' instructionjam1garner1-0/+18
2021-11-04core: Remove unused includesameerj1-1/+0
2021-10-24Fixed ARM_Dynamic_64 StepAndrew Strelsky1-1/+1
2021-07-08settings, arm_dynarmic, yuzu qt: Move CPU debugging optionlat9nq1-1/+1
Decouples the CPU debugging mode from the enumeration to its own boolean. After this, it moves the CPU Debugging tab over to a sub tab underneath the Debug tab in the configuration UI.
2021-07-08arm_dynarmic_64: Re-add fastmem_address_space_bits to Auto settinglat9nq1-0/+1
2021-07-08arm_dynarmic{32,64}: Fixes from test buildlat9nq1-9/+2
Now sets optimizations regardless of the Settings. Drops unsafe fastmem optimization.
2021-07-08core,common,yuzu qt: Add CPU accuracy option 'Auto'lat9nq1-4/+18
The current CPU accuracy settings in yuzu are fairly polarized and require more than common knowledge to know what the optimal settings for yuzu would be. This adds a curated option called 'Auto' that applies a few at the moment known-good unsafe optimizations to Dynarmic.
2021-06-24common: Replace common_sizes into user-literalsWunkolo1-2/+4
Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc user-literals within literals.h. To keep the global namespace clean, users will have to use: ``` using namespace Common::Literals; ``` to access these literals.
2021-06-11General: Add settings for fastmem and disabling adress space check.FernandoS271-1/+7
2021-06-11core: Make use of fastmemMarkus Wick1-0/+4
2021-05-29core/arm_interface: Improve the performance of memory fallbacks.Markus Wick1-16/+16
We just create one memory subsystem. This is a constant all the time. So there is no need to call the non-inlined parent.Memory() helper on every callback.
2021-05-29externals: Update dynarmic.Markus Wick1-2/+2
The new version supports fastmem on a64.
2021-05-27core/arm_interface: Call SVC after end of dynarmic block.Markus Wick1-6/+15
So we can modify all of dynarmic states within SVC without ExceptionalExit. Especially as the ExceptionalExit hack is dropped on upstream dynarmic.
2021-05-26core/arm: Drop ChangeProcessorID.Markus Wick1-4/+0
This code was used to switch the CPU ID on thread switches. However since "hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.", the CPU ID is not a constant. This has been dead code since this rewrite, and dropped in dynarmic as well. So there is no need to keep it.
2021-05-16core: Make variable shadowing a compile-time errorLioncash1-1/+1
Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
2021-05-16general: Make CPU accuracy and related a Settings::Settinglat9nq1-5/+5
Required to make CPU accuracy and unsafe settings available to use as a per-game setting.
2021-05-06hle: kernel: Rename Process to KProcess.bunnei1-1/+1
2021-05-04service: Resolve cases of member field shadowingLioncash1-6/+6
Now all that remains is for kernel code to be 'shadow-free' and then -Wshadow can be turned into an error.
2021-04-15common: Move settings to common from core.bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2021-04-02arm_dynarmic: Increase size of code cacheMerryMage1-0/+4
2021-03-24arm_dynarmic: Always have a 'valid' jit instanceMerryMage1-25/+13
2021-03-21core: arm_dynarmic: Ensure JIT state is saved/restored on page table changes.bunnei1-0/+5
- We re-create the JIT here without preserving any state.
2021-01-29arm: dynarmic: Reintroduce JIT checks on SaveContext/LoadContext.bunnei1-0/+6
2021-01-29core: arm: Remove unnecessary JIT checks.bunnei1-12/+0
2021-01-29arm: arm_dynarmic: Skip calls when JIT is invalid.bunnei1-0/+12
- This can happen if called from an idle or suspension thread.
2021-01-02dynarmic: Add Unsafe_InaccurateNaN optimizationMerryMage1-0/+3
2020-12-30core/memory: Read and write page table atomicallyReinUsesLisp1-0/+1
Squash attributes into the pointer's integer, making them an uintptr_t pair containing 2 bits at the bottom and then the pointer. These bits are currently unused thanks to alignment requirements. Configure Dynarmic to mask out these bits on pointer reads. While we are at it, remove some unused attributes carried over from Citra. Read/Write and other hot functions use a two step unpacking process that is less readable to stop MSVC from emitting an extra AND instruction in the hot path: mov rdi,rcx shr rdx,0Ch mov r8,qword ptr [rax+8] mov rax,qword ptr [r8+rdx*8] mov rdx,rax -and al,3 and rdx,0FFFFFFFFFFFFFFFCh je Core::Memory::Memory::Impl::Read<unsigned char> mov rax,qword ptr [vaddr] movzx eax,byte ptr [rdx+rax]
2020-12-06hle: kernel: Rewrite scheduler implementation based on Mesopshere.bunnei1-1/+1
2020-12-06hle: kernel: physical_core: Clear exclusive state after each run.bunnei1-0/+3
- This is closer to pre-multicore behavior, and works a bit better.
2020-11-29core: arm: Implement InvalidateCacheRange for CPU cache invalidation.bunnei1-0/+7
2020-11-29hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.bunnei1-0/+4
2020-11-27core: Eliminate remaining usages of the global system instanceLioncash1-11/+0
Removes all remaining usages of the global system instance. After this, migration can begin to migrate to being constructed and managed entirely by the various frontends.
2020-11-04core: Remove usage of unicornLioncash1-21/+8
Unicorn long-since lost most of its use, due to dynarmic gaining support for handling most instructions. At this point any further issues encountered should be used to make dynarmic better. This also allows us to remove our dependency on Python.
2020-10-21Revert "core: Fix clang build"bunnei1-5/+5
2020-10-18core: Fix clang buildLioncash1-5/+5
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
2020-08-16dynarmic: Add unsafe optimizationsMerryMage1-1/+12
2020-07-11configure_cpu: Show/Hide debugging optionsMerryMage1-23/+25
2020-07-11configuration: Add settings to enable/disable specific CPU optimizationsMerryMage1-6/+26
2020-06-28Core/Common: Address Feedback.Fernando Sahmkow1-2/+3
2020-06-27ARM: Update Dynarmic and Setup A32 according to latest interface.Fernando Sahmkow1-64/+1
2020-06-27ARMDynarmicInterface: Correct GCC Build Errors.Fernando Sahmkow1-3/+3
2020-06-27ARMInterface/Externals: Update dynarmic and fit to latest version.Fernando Sahmkow1-7/+7
2020-06-27ARMInterface: Correct rebase errors.Fernando Sahmkow1-2/+2
2020-06-27Dynarmic Interface: don't clear cache if JIT has not been created.Fernando Sahmkow1-0/+3
2020-06-27General: Cleanup legacy code.Fernando Sahmkow1-1/+0
2020-06-27SingleCore: Use Cycle Timing instead of Host Timing.Fernando Sahmkow1-13/+26
2020-06-27General: Move ARM_Interface into Threads.Fernando Sahmkow1-0/+4
2020-06-27Core: Refactor ARM Interface.Fernando Sahmkow1-5/+8
2020-06-27X64 Clock: Reduce accuracy to be less or equal to guest accuracy.Fernando Sahmkow1-0/+3
2020-06-27SVC/ARM: Correct svcSendSyncRequest and cache ticks on arm interface.Fernando Sahmkow1-2/+10
2020-06-27ARM: Addapt to new Exclusive Monitor Interface.Fernando Sahmkow1-12/+10
2020-06-27General: Fix microprofile on dynarmic/svc, fix wait tree showing which threads were running.Fernando Sahmkow1-4/+1
2020-06-27ARM/Memory: Correct Exclusive Monitor and Implement Exclusive Memory Writes.Fernando Sahmkow1-13/+53
2020-06-27General: Recover Prometheus project from harddrive failure Fernando Sahmkow1-17/+11
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.
2020-06-22arm_dynarmic_64: Log the instruction when an exception is raisedMorph1-2/+2
2020-04-24physical_core: Make use of std::make_unique instead of std::make_shared in ctorLioncash1-4/+3
We can also allow unicorn to be constructed in 32-bit mode or 64-bit mode to satisfy the need for both interpreter instances. Allows this code to compile successfully of non x86-64 architectures.
2020-04-20dynarmic: Add option to disable CPU JIT optimizationsMerryMage1-2/+8
2020-04-17dynarmic: Enable strict alignment checks.bunnei1-1/+4
- Also add a missing include.
2020-04-17core: kernel: Move SVC to its own namesapce.bunnei1-1/+1
2020-03-03core: Implement separate A32/A64 ARM interfaces.bunnei1-37/+37
2020-02-26ARM_Interface: Cache the JITs instead of deleting/recreating.Fernando Sahmkow1-2/+9
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.
2020-02-12Core: Set all hardware emulation constants in a single file.Fernando Sahmkow1-1/+2
2020-01-31core/arm: Remove usage of global GetCurrentThread()Lioncash1-1/+2
Now both CPU backends go through their referenced system instance to obtain the current thread.
2020-01-26Core: Refactor CpuCoreManager to CpuManager and Cpu to Core Manager.Fernando Sahmkow1-1/+1
This commit instends on better naming the new purpose of this classes.
2020-01-01core/memory + arm/dynarmic: Use a global offset within our arm page table.Markus Wick1-0/+1
This saves us two x64 instructions per load/store instruction. TODO: Clean up our memory code. We can use this optimization here as well.
2019-11-27core/memory: Migrate over Write{8, 16, 32, 64, Block} to the Memory classLioncash1-14/+16
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/memory: Migrate over Read{8, 16, 32, 64, Block} to the Memory classLioncash1-6/+6
With all of the trivial parts of the memory interface moved over, we can get right into moving over the bits that are used. Note that this does require the use of GetInstance from the global system instance to be used within hle_ipc.cpp and the gdbstub. This is fine for the time being, as they both already rely on the global system instance in other functions. These will be removed in a change directed at both of these respectively. For now, it's sufficient, as it still accomplishes the goal of de-globalizing the memory code.
2019-11-27core: Prepare various classes for memory read/write migrationLioncash1-3/+5
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-11-12arm_unicorn: Resolve sign conversion warningsLioncash1-1/+1
While we're at it, this also resolves a type truncation warning as well, given the code was truncating from a 64-bit value to a 32-bit one.
2019-10-11Core_Timing: Address Feedback and suppress warnings.Fernando Sahmkow1-1/+1
2019-10-09Core Timing: Rework Core Timing to run all cores evenly.Fernando Sahmkow1-1/+1
2019-09-30Revert "arm_dynarmic: Check if jit is nullptr when preparing reschedule"bunnei1-3/+0
2019-07-11core/arm: Remove obsolete Unicorn memory mappingLioncash1-9/+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-06-10arm_dynarmic: Check if jit is nullptr when preparing rescheduleZach Hilman1-0/+3
Prevents crash with multiprocess loading.
2019-04-12core/cpu_core_manager: Create threads separately from initialization.Lioncash1-15/+8
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-8/+9
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-2/+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-1/+0
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-02-16Corrections, documenting and fixes.Fernando Sahmkow1-1/+1
2019-02-16Use u128 on Clock Cycles calculation.Fernando Sahmkow1-1/+1
2019-02-16Correct CNTPCT to use Clock Cycles instead of Cpu Cycles.Fernando Sahmkow1-2/+3
2019-02-16core_timing: Convert core timing into a classLioncash1-5/+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.
2019-02-12core_timing: Rename CoreTiming namespace to Core::TimingLioncash1-3/+3
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-19Moved backtrace to ArmInterfaceDavid Marcec1-16/+0
2018-12-18arm_dynarmic: Set CNTFRQ valueMerryMage1-0/+1
2018-12-03Moved backtrace to ArmInterfaceDavid Marcec1-0/+16
Added to both dynarmic and unicorn
2018-10-15core: Make the exclusive monitor a unique_ptr instead of a shared_ptrLioncash1-4/+3
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-10-10kernel/thread: Use a regular pointer for the owner/current processLioncash1-1/+1
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-04kernel/thread: Make all instance variables privateLioncash1-1/+1
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-30kernel/process: Make data member variables privateLioncash1-2/+2
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-30arm_interface: Add missing fpsr/tpidr members to the ThreadContext structLioncash1-2/+6
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.
2018-09-25memory: Dehardcode the use of a 36-bit address spaceLioncash1-2/+3
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-23FPCR register was uninitialized at start upPhilippe Babin1-1/+1
2018-09-21arm_interface: Replace kernel vm_manager include with a forward declarationLioncash1-0/+1
Avoids an unnecessary inclusion and also uncovers three places where indirect inclusions were relied upon, which allows us to also resolve those.
2018-09-20arm_dynarmic: Halt when BRK encounteredMerryMage1-0/+1
2018-09-19arm_dynarmic: Support BKPT instructionMerryMage1-0/+11
2018-09-18arm_dynarmic: Correct ExclusiveWrite128()'s operationLioncash1-2/+2
Previously the second half of the value being written would overwrite the first half. Thankfully this wasn't a bug that was being encountered, as the function is currently unused.
2018-09-18arm_interface: Remove ARM11-isms from the CPU interfaceLioncash1-20/+11
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-13/+14
2018-09-04Update microprofile scopes.Markus Wick1-0/+4
Blame the subsystems which deserve the blame :) The updated list is not complete, just the ones I've spotted on random sampling the stack trace.
2018-08-31core/core: Replace includes with forward declarations where applicableLioncash1-0/+1
The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
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-08-16dynarmic: Update to 550d662MerryMage1-0/+3
550d662 load_store_exclusive: Define s == t state to be Constraint_NONE 0b69381 A64/translate: Allow for unpredictable behaviour to be defined 6d236d4 system: Implement MRS CNTFRQ_EL0 6cbb6fb A32/testenv: Add missing headers 6729328 externals: Update xbyak to v5.67 1812bd2 Squashed 'externals/xbyak/' changes from 2794cde7..671fc805 9a95802 externals: Document subtrees 714a840 A64: Implement SQ{ADD, SUB}, and UQ{ADD, SUB}'s vector variants 8cab459 A64: Implement UQADD/UQSUB's scalar variants 18a8151 ir: Add opcodes for unsigned saturating add and subtract a5660ee x64/reg_alloc: Use type alias for array returned by GetArgumentInfo() 29489b5 ir/value: Use type alias CoprocessorInfo for std::array<u8, 8> e23ba26 status_register_access: Add support for bits 0 and 1 of mask to MSR 55190bd fuzz_with_unicorn: Split utility functions into fuzz_util 23b049d A32/translate/load_store: Correct detection of writeback 7ec9f15 A32/translate: Add TranslateSingleInstruction efeecb4 A32/ir_emitter: Bug fix: IREmitter::ExceptionRaised using incorrect opcode 08d1d19 A32/decoders: Split instruction list into include file 2d929cc tests: Refactor unicorn_emu to allow for A32 unicorn f672368 microinstruction: Improve assert messages 7ebff50 emit_x64_vector: EmitVectorNarrow16: AVX512 implementation edce230 emit_x64_vector: EmitVectorNarrow32: prefer pblendw to loading constant
2018-08-13arm_dynarmic: Remove IsExecuting check from PrepareRescheduleMerryMage1-3/+1
No longer required. HaltExecution is a no-op if it is not currently executing.
2018-08-13CPU/Timing: Use an approximated amortized amount of ticks when advancing timing.Subv1-1/+10
We divide the number of ticks to add by the number of cores (4) to obtain a more or less rough estimate of the actual number of ticks added. This assumes that all 4 cores are doing similar work. Previously we were adding ~4 times the number of ticks, thus making the games think that time was going way too fast. This lets us bypass certain hangs in some games like Breath of the Wild. We should modify our CoreTiming to support multiple cores (both running in a single thread, and in multiple host threads).
2018-07-31kernel: Remove unnecessary includesLioncash1-1/+1
Removes unnecessary direct dependencies in some headers and also gets rid of indirect dependencies that were being relied on to be included.
2018-07-31arm_dynarmic: Make SetTlsAddress() prototype and definition consistentLioncash1-1/+1
Makes the definition use the same type aliases as in its prototype.
2018-07-31arm_dynarmic: Remove unnecessary qualifying of ThreadContextLioncash1-3/+3
Given the ARM_Dynarmic class inherits from ARM_Interface, we don't need to qualify here.
2018-07-31arm_dynarmic: Correct initializer list orderLioncash1-5/+3
Amends the initializer list to be in the same order that each variable would be initialized in. We also do this to ensure we don't use a bogus uninitialized instance of the exclusive monitor within MakeJit() We can also remove the jit member from the initializer list as this is initialized by PageTableChanged()
2018-07-24arm_dynarmic: Make MakeJit() a const member functionLioncash1-2/+2
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-7/+60
2018-07-21CPU: Save and restore the TPIDR_EL0 system register on every context switch.Subv1-0/+8
Note that there's currently a dynarmic bug preventing this register from being written.
2018-07-21arm_interface: Remove unused tls_address member of ThreadContextLioncash1-2/+0
Currently, the TLS address is set within the scheduler, making this member unused.
2018-07-16scheduler: Clear exclusive state when switching contextsMerryMage1-0/+4
2018-07-03Update clang formatJames Rowe1-1/+1
2018-07-03Rename logging macro back to LOG_*James Rowe1-1/+1
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash1-1/+1
This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
2018-04-27general: Convert assertion macros over to be fmt-compatibleLioncash1-1/+1
2018-04-26core: Replace remaining old non-generic logger usages with fmt-capable equivalentsLioncash1-2/+2
LOG_GENERIC usages will be amended in a follow-up to keep API changes separate from interface changes, as it will require removing a parameter from the relevant function in the VMManager class.
2018-03-24arm_dynarmic: Fix timingMerryMage1-7/+3
2018-03-16arm_interface: Support unmapping previously mapped memory.bunnei1-0/+4
2018-03-14core: Move process creation out of global state.bunnei1-1/+2
2018-02-25Implements citra-emu/citra#3184N00byKing1-7/+12
2018-02-21dynarmic: Update to 6b4c6b0MerryMage1-2/+18
6b4c6b0 impl: Update PC when raising exception 7a1313a A64: Implement FDIV (vector) b2d781d system: Raise exception for YIELD, WFE, WFI, SEV, SEVL b277bf5 Correct FPSR and FPCR 7673933 A64: Implement USHL 8d0e558 A64: Implement UCVTF (vector, integer), scalar variant da9a4f8 A64: Partially implement FCVTZU (scalar, fixed-point) and FCVTZS (scalar, fixed-point) 7479684 A64: Implement system register TPIDR_EL0 0fd75fd A64: Implement system registers FPCR and FPSR 31e370c A64: Implement system register CNTPCT_EL0 9a88fd3 A64: Implement system register CTR_EL0 1d16896 A64: Implement NEG (vector) 3184edf IR: Add IR instruction ZeroVector 31f8fbc emit_x64_floating_point: Add maybe_unused to preprocess parameter 567eb1a A64: Implement FMINNM (scalar) c6d8fa1 A64: Implement FMAXNM (scalar) 616056d constant_pool: Add frame parameter a3747cb A64: Implement ADDP (scalar) 5cd5d9f reg_alloc: Only exchange GPRs dd0452a A64: Implement DUP (element), scalar variant e5732ea emit_x64_floating_point: Correct FP{Max,Min}{32,64} implementations for -0/+0 40eb9c3 A64: Implement FMAX (scalar), FMIN (scalar) 7cef39b fuzz_with_unicorn: QEMU's implementation of FCVT is incorrect 826dce2 travis: Switch unicorn repository 9605f28 a64/config: Allow NaN emulation accuracy to be set e9435bc a64_emit_x64: Add conf to A64EmitContext 30b596d fuzz_with_unicorn: Explicitly test floating point instructions be292a8 A64: Implement FSQRT (scalar) 3c42d48 backend_x64: Accurately handle NaNs 4aefed0 fuzz_with_unicorn: Print AArch64 disassembly
2018-02-21arm_dynarmic: LOG_INFO on unicorn fallbackMerryMage1-0/+4
2018-02-12arm_dynarmic: Support direct page table accessMerryMage1-6/+14
2018-02-09dynarmic: Update to 41ae12263MerryMage1-30/+44
Changes: Primarily implementing more A64 instructions
2018-01-20Fixes some cast warnings, partial port of citra #3064 (#106)River City Ransomware1-3/+3
* Fixes some cast warnings, partially fixes citra #3064 * Converted casts to uint32_t to u32 * Ran clang-format
2018-01-13Update dynarmic to bc73004MerryMage1-12/+17
bc73004 a64_merge_interpret_blocks: Remove debug output 4e656ed tests/A64: Randomize PSTATE.<NZCV> fd9530b A64: Optimization: Merge interpret blocks 3c9eb04 testenv: Use format constants 324f3fc tests/A64: Unicorn interface fixes 98ecbe7 tests/A64: Fuzz against unicorn b1d38e7 tests/A64: Move TestEnvironment to own header 5218ad9 A64/data_processing_pcrel: bug: ADR{,P} instructions sign extend their immediate b1a8c39 A64/data_processing_addsub: bug: {ADD,SUB}S (extended register) instructions write to ZR when d = 31 64827fb a64_emit_x64: bug: A64CallSupervisor trampled callee-save registers 1bfa04d emit_x64: bug: OP m/r64, imm32 form instructions sign-extend their immediate on x64 edadeea A64 inferface: Use two argument static_assert 9ab1304 A64: Add ExceptionRaised IR instruction 6843eed Update readme 7438d07 A64/translate: Add TranslateSingleInstruction function
2018-01-13yuzu: Update license text to be consistent across project.bunnei1-1/+1
2018-01-12arm_dynarmic: Implement coreMerryMage1-42/+128
2018-01-04arm_dynarmic: Gut interface until dynarmic is ready for general use.bunnei1-134/+41
2018-01-03arm: Remove SkyEye/Dyncom code that is ARMv6-only.bunnei1-21/+5
2017-09-30arm_interface: Set TLS address for dynarmic core.bunnei1-0/+14
2017-09-30arm: Use 64-bit addressing in a bunch of places.bunnei1-48/+81
2017-09-30Moved down_count to CoreTimingHuw Pascoe1-8/+1
2017-09-25ARM_Interface: Implement PageTableChangedMerryMage1-5/+17
2017-09-15CPU/Dynarmic: Disable the fast page-table access in dynarmic until it supports switching page tables at runtime.Subv1-1/+3
2017-08-21CPU/Dynarmic: Fixed a warning when incrementing the number of ticks in ExecuteInstructions.Subv1-1/+1
2017-02-03arm_dynarmic: Update memory interfaceMerryMage1-10/+10
2017-02-03arm_dynarmic: CP15 supportMerryMage1-4/+7
2016-12-22arm_dynarmic: Provide MemoryReadCode callbackMerryMage1-0/+1
Change of interface in dynarmic 36082087ded632079b16d24137fdd0c450ce82ea
2016-12-22ThreadContext: Move from "core" to "arm_interface".bunnei1-2/+2
2016-12-11Core: Add a forgotten #include <cstring> for memcpy.Emmanuel Gil Peyrot1-0/+1
2016-11-26dynarmic: Add ticks based on ticks executed, not ticks requestedMerryMage1-2/+2
2016-11-25Expose page table to dynarmic for optimized reads and writes to the JITJames Rowe1-0/+1
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-4/+2
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-15arm_dynarmic: Implement GetVFPSystemReg/SetVFPSystemReg.bunnei1-5/+12
2016-09-15arm: ResetContext shouldn't be part of ARM_Interface.bunnei1-9/+0
2016-09-15dynarmic: Implement ARM CPU interface.bunnei1-0/+176