Preallocate unicorn translation buffer to 2gb

This commit is contained in:
momo5502
2024-12-24 10:15:57 +01:00
parent 405d5e349d
commit c9a250b77f

View File

@@ -242,6 +242,7 @@ namespace unicorn
unicorn_x64_emulator()
{
uce(uc_open(UC_ARCH_X86, UC_MODE_64, &this->uc_));
uce(uc_ctl_set_tcg_buffer_size(this->uc_, 2 << 30 /* 2 gb */));
}
~unicorn_x64_emulator() override