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

@@ -20,6 +20,7 @@
#ifndef QEMU_CPU_H
#define QEMU_CPU_H
#include <stdint.h>
#include "exec/hwaddr.h"
#include "exec/memattrs.h"
#include "qemu/bitmap.h"

View File

@@ -35,6 +35,11 @@
#include "tcg-apple-jit.h"
#include "qemu/int128.h"
// Unicorn: Default region size for win32
#if defined(_WIN32) && !defined(USE_STATIC_CODE_GEN_BUFFER)
#define UC_TCG_REGION_PAGES_COUNT (128)
#endif
/* XXX: make safe guess about sizes */
#define MAX_OP_PER_INSTR 266