aboutsummaryrefslogtreecommitdiff
path: root/src/dynarmic/tests/A32/test_arm_instructions.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-09-19 01:39:46 +0200
committercrueter <crueter@eden-emu.dev>2026-09-19 01:39:46 +0200
commit9a30172e45fcb7833cc49ba4d6450211449b14df (patch)
tree4ab0ffbb276464086615fa247d69a9cdf9d5ac55 /src/dynarmic/tests/A32/test_arm_instructions.cpp
parent07f40d5cac635ff102aa6ce9c32572cc20d69959 (diff)
[dynarmic] Coalesce non-exclusive Write/Read fallback functions (#4158)
the general idea is to have a common procedure form whom to call this way theres less "jumping around" for values of different sizes additionally this **should** allow for better codegen since most of the u8,u16,u32,u64 can be held within a u64 theoretically this means that you could deifne callbacks in suck a way that it's essentially as costly as a `mov r64, m64` but that's not doable due to the fact we have to do translations... Is this a good change? Primarily aimed for x86 and ARM to benefit, but I suppose LooooooongArch64 can benefit too. Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4158 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Diffstat (limited to 'src/dynarmic/tests/A32/test_arm_instructions.cpp')
-rw-r--r--src/dynarmic/tests/A32/test_arm_instructions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dynarmic/tests/A32/test_arm_instructions.cpp b/src/dynarmic/tests/A32/test_arm_instructions.cpp
index 5a27cd499c..ee24131386 100644
--- a/src/dynarmic/tests/A32/test_arm_instructions.cpp
+++ b/src/dynarmic/tests/A32/test_arm_instructions.cpp
@@ -553,9 +553,9 @@ TEST_CASE("arm: Memory access (fastmem)", "[arm][A32]") {
memset(backing_memory, 0, memory_size);
memcpy(backing_memory + 0x100, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 57);
- env.MemoryWrite32(0, 0xE5904000); // LDR R4, [R0]
- env.MemoryWrite32(4, 0xE5814000); // STR R4, [R1]
- env.MemoryWrite32(8, 0xEAFFFFFE); // B .
+ env.MemoryWrite(0, 0xE5904000, sizeof(u32)); // LDR R4, [R0]
+ env.MemoryWrite(4, 0xE5814000, sizeof(u32)); // STR R4, [R1]
+ env.MemoryWrite(8, 0xEAFFFFFE, sizeof(u32)); // B .
jit.Regs()[0] = 0x100;
jit.Regs()[1] = 0x1F0;
jit.Regs()[15] = 0; // PC = 0