Demand paging on Windows

This commit is contained in:
mio
2023-01-28 22:04:43 +01:00
parent 7e4754ad00
commit 12a79192ee
5 changed files with 49 additions and 0 deletions

View File

@@ -7,3 +7,10 @@
#define CONFIG_CMPXCHG128 1
// #define CONFIG_ATOMIC64 1
#define CONFIG_PLUGIN 1
// QEMU by default allocates (and commits) 1GB memory on Windows, and multiple Unicorn instances will result in OOM error easily.
// Unfortunately, Windows doesn't have a similar demand paging feature like mmap(), therefore a workaround is to use tcg regions mechanism.
// Note most Unicorn hacks (and even QEMU!) relies on the assumption that the translation memory won't run out and thus it might result
// in some unexpected errors. If that is case, define to align with QEMU and Unicorn <= 2.0.1 behavior.
//
// #define USE_STATIC_CODE_GEN_BUFFER