mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-23 12:23:41 +00:00
fix: MSVC Compiler Error
This commit is contained in:
@@ -193,7 +193,11 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
|
||||
config.detect_misaligned_access_via_page_table = 16 | 32 | 64 | 128;
|
||||
config.only_detect_misalignment_via_page_table_on_page_boundary = true;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
config.fastmem_pointer = page_table->fastmem_arena;
|
||||
#else
|
||||
config.fastmem_pointer = reinterpret_cast<uintptr_t>(page_table->fastmem_arena);
|
||||
#endif
|
||||
|
||||
config.fastmem_exclusive_access = config.fastmem_pointer.has_value();
|
||||
config.recompile_on_exclusive_fastmem_failure = true;
|
||||
@@ -252,7 +256,11 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
|
||||
config.only_detect_misalignment_via_page_table_on_page_boundary = false;
|
||||
}
|
||||
if (!Settings::values.cpuopt_fastmem) {
|
||||
#ifdef _MSC_VER
|
||||
config.fastmem_pointer = nullptr;
|
||||
#else
|
||||
config.fastmem_pointer = std::nullopt;
|
||||
#endif
|
||||
config.fastmem_exclusive_access = false;
|
||||
}
|
||||
if (!Settings::values.cpuopt_fastmem_exclusives) {
|
||||
|
||||
Reference in New Issue
Block a user