aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/A32
diff options
context:
space:
mode:
authorAsh <[email protected]>2024-01-28 14:35:15 +0300
committerMerry <[email protected]>2024-03-02 16:31:20 +0000
commit732a65769479ca7fe4278bc4ad5aa5156606e0fe (patch)
tree88846eff74acd543f5ee2a28f2b24d3ce9a1ce64 /tests/A32
parentf884bc0dfcc7eccaaf63e3b2f99ac2a180479cbb (diff)
downloaddynarmic-732a65769479ca7fe4278bc4ad5aa5156606e0fe.tar.gz
dynarmic-732a65769479ca7fe4278bc4ad5aa5156606e0fe.zip
Change Config to make fastmem_pointer of zero valid.
This changes Dynarmic::A32/A64::Config to store fastmem_pointer in a std::optional<uintptr_t>, allowing the user to pass a zero base address for the guest memory, which can be used to effectively implement a shared address space between the host and the guest.
Diffstat (limited to 'tests/A32')
-rw-r--r--tests/A32/test_arm_instructions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/A32/test_arm_instructions.cpp b/tests/A32/test_arm_instructions.cpp
index b4a17331..3232f1a8 100644
--- a/tests/A32/test_arm_instructions.cpp
+++ b/tests/A32/test_arm_instructions.cpp
@@ -540,7 +540,7 @@ TEST_CASE("arm: Memory access (fastmem)", "[arm][A32]") {
A32FastmemTestEnv env{backing_memory};
Dynarmic::A32::UserConfig config{&env};
- config.fastmem_pointer = backing_memory;
+ config.fastmem_pointer = reinterpret_cast<uintptr_t>(backing_memory);
config.recompile_on_fastmem_failure = false;
config.processor_id = 0;