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.
This commit is contained in:
Ash 2024-01-28 14:35:15 +03:00 committed by Merry
parent f884bc0dfc
commit 732a657694
9 changed files with 16 additions and 16 deletions

View file

@ -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;

File diff suppressed because one or more lines are too long