Browse Source

[dynarmic] windows fixes

pull/55/head
lizzie 8 months ago
parent
commit
1ae2ba518c
  1. 6
      src/core/arm/dynarmic/arm_dynarmic_32.cpp
  2. 6
      src/core/arm/dynarmic/arm_dynarmic_64.cpp

6
src/core/arm/dynarmic/arm_dynarmic_32.cpp

@ -210,9 +210,9 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
// Code cache size // Code cache size
#ifdef ARCHITECTURE_arm64 #ifdef ARCHITECTURE_arm64
config.code_cache_size = 128_MiB;
config.code_cache_size = std::uint32_t(128_MiB);
#else #else
config.code_cache_size = 512_MiB;
config.code_cache_size = std::uint32_t(512_MiB);
#endif #endif
// Allow memory fault handling to work // Allow memory fault handling to work
@ -223,7 +223,7 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
// null_jit // null_jit
if (!page_table) { if (!page_table) {
// Don't waste too much memory on null_jit // Don't waste too much memory on null_jit
config.code_cache_size = 8_MiB;
config.code_cache_size = std::uint32_t(8_MiB);
} }
// Safe optimizations // Safe optimizations

6
src/core/arm/dynarmic/arm_dynarmic_64.cpp

@ -269,9 +269,9 @@ std::shared_ptr<Dynarmic::A64::Jit> ArmDynarmic64::MakeJit(Common::PageTable* pa
// Code cache size // Code cache size
#ifdef ARCHITECTURE_arm64 #ifdef ARCHITECTURE_arm64
config.code_cache_size = 128_MiB;
config.code_cache_size = std::uint32_t(128_MiB);
#else #else
config.code_cache_size = 512_MiB;
config.code_cache_size = std::uint32_t(512_MiB);
#endif #endif
// Allow memory fault handling to work // Allow memory fault handling to work
@ -282,7 +282,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ArmDynarmic64::MakeJit(Common::PageTable* pa
// null_jit // null_jit
if (!page_table) { if (!page_table) {
// Don't waste too much memory on null_jit // Don't waste too much memory on null_jit
config.code_cache_size = 8_MiB;
config.code_cache_size = std::uint32_t(8_MiB);
} }
// Safe optimizations // Safe optimizations

Loading…
Cancel
Save