[dynarmic] fix userconfig casting warn #55

Merged
crueter merged 3 commits from mv1l into master 2025-07-14 00:54:01 +02:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit 1ae2ba518c - Show all commits

View file

@ -210,9 +210,9 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
// Code cache size
#ifdef ARCHITECTURE_arm64
config.code_cache_size = 128_MiB;
config.code_cache_size = std::uint32_t(128_MiB);
#else
config.code_cache_size = 512_MiB;
config.code_cache_size = std::uint32_t(512_MiB);
#endif
// Allow memory fault handling to work
@ -223,7 +223,7 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
// null_jit
if (!page_table) {
// 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

View file

@ -269,9 +269,9 @@ std::shared_ptr<Dynarmic::A64::Jit> ArmDynarmic64::MakeJit(Common::PageTable* pa
// Code cache size
#ifdef ARCHITECTURE_arm64
config.code_cache_size = 128_MiB;
config.code_cache_size = std::uint32_t(128_MiB);
#else
config.code_cache_size = 512_MiB;
config.code_cache_size = std::uint32_t(512_MiB);
#endif
// Allow memory fault handling to work
@ -282,7 +282,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ArmDynarmic64::MakeJit(Common::PageTable* pa
// null_jit
if (!page_table) {
// 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