[jit] Increase x86_64 default code size to full 2GiB hugepage (#318)
Abuses the existence of transparent huge pages on Unix. 4*2 = 8GiB virtual memory used total by JIT. May reduce native host TLB trees. Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: #318 Reviewed-by: Shinmegumi <shinmegumi@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
f1083a2366
commit
31b3e3e0ea
2 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ std::shared_ptr<Dynarmic::A32::Jit> ArmDynarmic32::MakeJit(Common::PageTable* pa
|
|||
#ifdef ARCHITECTURE_arm64
|
||||
config.code_cache_size = std::uint32_t(128_MiB);
|
||||
#else
|
||||
config.code_cache_size = std::uint32_t(512_MiB);
|
||||
config.code_cache_size = std::uint32_t(2_GiB);
|
||||
#endif
|
||||
|
||||
// Allow memory fault handling to work
|
||||
|
|
|
@ -273,7 +273,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ArmDynarmic64::MakeJit(Common::PageTable* pa
|
|||
#ifdef ARCHITECTURE_arm64
|
||||
config.code_cache_size = std::uint32_t(128_MiB);
|
||||
#else
|
||||
config.code_cache_size = std::uint32_t(512_MiB);
|
||||
config.code_cache_size = std::uint32_t(2_GiB);
|
||||
#endif
|
||||
|
||||
// Allow memory fault handling to work
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue