Support demand paging via closures and seh

Reverts 12a79192ee which exploits normal tcg mechanism

This uses a trampoline to pass extra data to seh handlers
This commit is contained in:
mio
2023-06-10 14:04:56 +02:00
parent 7b4dc569cc
commit 3d5b2643f0
6 changed files with 103 additions and 47 deletions

View File

@@ -399,6 +399,11 @@ struct uc_struct {
struct TranslationBlock *last_tb; // The real last tb we executed.
FlatView *empty_view; // Static function variable moved from flatviews_init
#ifdef WIN32
PVOID seh_handle;
void* seh_closure;
#endif
};
// Metadata stub for the variable-size cpu context used with uc_context_*()