diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-05-07 22:50:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-07 16:50:37 +0200 |
| commit | 5d14413b89d7bb78023307fc59d2d9da182554a4 (patch) | |
| tree | 3822c9835ff42632837da6dde40a292e7048247f /src/include/pe_tools.h | |
| parent | ec549690944d2768b811340bc999abdfbc60ca2c (diff) | |
| download | box64-5d14413b89d7bb78023307fc59d2d9da182554a4.tar.gz box64-5d14413b89d7bb78023307fc59d2d9da182554a4.zip | |
[DYNAREC] Use PE volatile metadata in dynarec (#2610)
Diffstat (limited to 'src/include/pe_tools.h')
| -rw-r--r-- | src/include/pe_tools.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/pe_tools.h b/src/include/pe_tools.h index 54c3d42e..d52f1438 100644 --- a/src/include/pe_tools.h +++ b/src/include/pe_tools.h @@ -1,7 +1,13 @@ #ifndef __PE_TOOLS_H__ #define __PE_TOOLS_H__ - +// Parse the PE file and extract the volatile metadata, which contains volatile opcode entries and volatile ranges. void ParseVolatileMetadata(char* filename, void* addr); +// Check if a given address is contained within the volatile ranges. +int VolatileRangesContains(uintptr_t addr); + +// Check if a given address is contained within the volatile opcode entries. +int VolatileOpcodesHas(uintptr_t addr); + #endif // __PE_TOOLS_H__ |