about summary refs log tree commit diff stats
path: root/src/include/pe_tools.h
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-05-07 22:50:37 +0800
committerGitHub <noreply@github.com>2025-05-07 16:50:37 +0200
commit5d14413b89d7bb78023307fc59d2d9da182554a4 (patch)
tree3822c9835ff42632837da6dde40a292e7048247f /src/include/pe_tools.h
parentec549690944d2768b811340bc999abdfbc60ca2c (diff)
downloadbox64-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.h8
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__