MerryMage
62b59f3588
arm_dynarmic: Increase size of code cache
5 years ago
MerryMage
eb3ece5770
arm_dynarmic: Always have a 'valid' jit instance
5 years ago
bunnei
1a89de249c
core: arm_dynarmic: Ensure JIT state is saved/restored on page table changes.
- We re-create the JIT here without preserving any state.
5 years ago
MerryMage
6f76ed25df
arm_dynarmic_32: Print out CPSR.T on exception
5 years ago
bunnei
1ebbfe8e3b
arm: dynarmic: Reintroduce JIT checks on SaveContext/LoadContext.
5 years ago
bunnei
2f34533f47
core: arm: Remove unnecessary JIT checks.
5 years ago
bunnei
db342cc6f0
arm: arm_dynarmic: Skip calls when JIT is invalid.
- This can happen if called from an idle or suspension thread.
5 years ago
bunnei
6cbeabce0d
core: arm: arm_interface: Fix shadowing errors.
5 years ago
ReinUsesLisp
53cf598783
core: Silence unhandled enum in switch warnings
5 years ago
MerryMage
c535205f1c
dynarmic: Add Unsafe_InaccurateNaN optimization
5 years ago
ReinUsesLisp
8bfa4d6dbf
core/memory: Read and write page table atomically
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]
5 years ago
bunnei
039844bbb9
hle: kernel: Rewrite scheduler implementation based on Mesopshere.
5 years ago
bunnei
abc079aca1
hle: kernel: physical_core: Clear exclusive state after each run.
- This is closer to pre-multicore behavior, and works a bit better.
5 years ago
bunnei
a5b73195c9
core: arm: Implement InvalidateCacheRange for CPU cache invalidation.
6 years ago
bunnei
aaffe73f47
hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.
6 years ago
Lioncash
c06510376a
core: Eliminate remaining usages of the global system instance
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.
5 years ago
Lioncash
9568c94a11
cpu_interrupt_handler: Mark move contructor/assignment as deleted
The interrupt handler contains a std::atomic_bool, which isn't copyable
or movable, so the special move member functions will always be deleted,
despite being defaulted.
This can resolve warnings on clang and GCC.
6 years ago
Lioncash
5c55f3b585
core: Remove usage of unicorn
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.
6 years ago
Lioncash
3e654ff0d0
General: Resolve a few missing initializer warnings
Resolves a few -Wmissing-initializer warnings.
6 years ago
bunnei
deb3536936
Revert "core: Fix clang build"
6 years ago
Lioncash
18636013c9
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
6 years ago
Lioncash
e457001dce
General: Make use of std::nullopt where applicable
Allows some implementations to avoid completely zeroing out the internal
buffer of the optional, and instead only set the validity byte within
the structure.
This also makes it consistent how we return empty optionals.
6 years ago
Lioncash
4d0fa3544f
arm_dynarmic_cp15: Initialize member variables
Ensures that the member variables are always initialized to a
deterministic value on creation.
6 years ago
ReinUsesLisp
ad0306e520
cpu_interrupt_handler: Misc style changes
6 years ago
ReinUsesLisp
7eb6cc742a
cpu_interrupt_handler: Make is_interrupted an atomic
Fixes a race condition detected from tsan
6 years ago
MerryMage
1057908c3a
dynarmic: Add unsafe optimizations
6 years ago
MerryMage
f82bbf743c
configure_cpu: Show/Hide debugging options
6 years ago
MerryMage
79dfd272a9
configuration: Add settings to enable/disable specific CPU optimizations
6 years ago
MerryMage
d6c3391232
cpu_interrupt_handler: Remove #pragma once from .cpp file
6 years ago
Fernando Sahmkow
94a51e6b21
Core/Common: Address Feedback.
6 years ago
Fernando Sahmkow
8cd81eb66f
SVC: Implement 32-bits wrappers and update Dynarmic.
6 years ago
Fernando Sahmkow
fd631d72a6
ARM: Update Dynarmic and Setup A32 according to latest interface.
6 years ago
Fernando Sahmkow
a7be2fac83
ArmDynarmic32: Setup CNTPCT correctly
6 years ago
Fernando Sahmkow
af0999c735
ARMDynarmicInterface: Correct GCC Build Errors.
6 years ago
Fernando Sahmkow
adc86e3030
Clang Format.
6 years ago
Fernando Sahmkow
6cbdb64f3d
ARMInterface/Externals: Update dynarmic and fit to latest version.
6 years ago
Fernando Sahmkow
cce90e2672
ARMInterface: Correct rebase errors.
6 years ago
Fernando Sahmkow
b5f7040175
Dynarmic Interface: don't clear cache if JIT has not been created.
6 years ago
Fernando Sahmkow
6f0c873d48
General: Cleanup legacy code.
6 years ago
Fernando Sahmkow
f0f2fc4243
SingleCore: Use Cycle Timing instead of Host Timing.
6 years ago
Fernando Sahmkow
db60ca2704
General: Move ARM_Interface into Threads.
6 years ago
Fernando Sahmkow
7b3b33a2e6
Core: Refactor ARM Interface.
6 years ago
Fernando Sahmkow
1cc7c426df
X64 Clock: Reduce accuracy to be less or equal to guest accuracy.
6 years ago
Fernando Sahmkow
c22d3e1e18
ARM/WaitTree: Better track the CallStack for each thread.
6 years ago
Fernando Sahmkow
96c996b6a0
SVC/ARM: Correct svcSendSyncRequest and cache ticks on arm interface.
6 years ago
Fernando Sahmkow
fc47857c3b
ARM: Addapt to new Exclusive Monitor Interface.
6 years ago
Fernando Sahmkow
b121009e03
General: Fix microprofile on dynarmic/svc, fix wait tree showing which threads were running.
6 years ago
Fernando Sahmkow
5eac520ae3
ARM/Memory: Correct Exclusive Monitor and Implement Exclusive Memory Writes.
6 years ago
Fernando Sahmkow
a9ed059a07
Scheduler: Remove arm_interface lock and a few corrections.
6 years ago
Fernando Sahmkow
c8e62451c6
Core: Correct rebase.
6 years ago