diff --git a/bindings/dotnet/UnicornEngine/Const/Common.fs b/bindings/dotnet/UnicornEngine/Const/Common.fs index d0ed7b98..f44d1149 100644 --- a/bindings/dotnet/UnicornEngine/Const/Common.fs +++ b/bindings/dotnet/UnicornEngine/Const/Common.fs @@ -111,6 +111,7 @@ module Common = let UC_HOOK_INSN_INVALID = 16384 let UC_HOOK_EDGE_GENERATED = 32768 let UC_HOOK_TCG_OPCODE = 65536 + let UC_HOOK_TLB_FILL = 131072 let UC_HOOK_MEM_UNMAPPED = 112 let UC_HOOK_MEM_PROT = 896 let UC_HOOK_MEM_READ_INVALID = 144 @@ -128,6 +129,9 @@ module Common = let UC_CTL_IO_READ = 2 let UC_CTL_IO_READ_WRITE = 3 + let UC_TLB_CPU = 0 + let UC_TLB_VIRTUAL = 1 + let UC_CTL_UC_MODE = 0 let UC_CTL_UC_PAGE_SIZE = 1 let UC_CTL_UC_ARCH = 2 @@ -139,6 +143,8 @@ module Common = let UC_CTL_TB_REQUEST_CACHE = 8 let UC_CTL_TB_REMOVE_CACHE = 9 let UC_CTL_TB_FLUSH = 10 + let UC_CTL_TLB_FLUSH = 11 + let UC_CTL_TLB_TYPE = 12 let UC_PROT_NONE = 0 let UC_PROT_READ = 1 diff --git a/bindings/go/unicorn/unicorn_const.go b/bindings/go/unicorn/unicorn_const.go index 34c97b4a..f82cf916 100644 --- a/bindings/go/unicorn/unicorn_const.go +++ b/bindings/go/unicorn/unicorn_const.go @@ -106,6 +106,7 @@ const ( HOOK_INSN_INVALID = 16384 HOOK_EDGE_GENERATED = 32768 HOOK_TCG_OPCODE = 65536 + HOOK_TLB_FILL = 131072 HOOK_MEM_UNMAPPED = 112 HOOK_MEM_PROT = 896 HOOK_MEM_READ_INVALID = 144 @@ -123,6 +124,9 @@ const ( CTL_IO_READ = 2 CTL_IO_READ_WRITE = 3 + TLB_CPU = 0 + TLB_VIRTUAL = 1 + CTL_UC_MODE = 0 CTL_UC_PAGE_SIZE = 1 CTL_UC_ARCH = 2 @@ -134,6 +138,8 @@ const ( CTL_TB_REQUEST_CACHE = 8 CTL_TB_REMOVE_CACHE = 9 CTL_TB_FLUSH = 10 + CTL_TLB_FLUSH = 11 + CTL_TLB_TYPE = 12 PROT_NONE = 0 PROT_READ = 1 diff --git a/bindings/java/unicorn/UnicornConst.java b/bindings/java/unicorn/UnicornConst.java index e63afb79..afd0580e 100644 --- a/bindings/java/unicorn/UnicornConst.java +++ b/bindings/java/unicorn/UnicornConst.java @@ -108,6 +108,7 @@ public interface UnicornConst { public static final int UC_HOOK_INSN_INVALID = 16384; public static final int UC_HOOK_EDGE_GENERATED = 32768; public static final int UC_HOOK_TCG_OPCODE = 65536; + public static final int UC_HOOK_TLB_FILL = 131072; public static final int UC_HOOK_MEM_UNMAPPED = 112; public static final int UC_HOOK_MEM_PROT = 896; public static final int UC_HOOK_MEM_READ_INVALID = 144; @@ -125,6 +126,9 @@ public interface UnicornConst { public static final int UC_CTL_IO_READ = 2; public static final int UC_CTL_IO_READ_WRITE = 3; + public static final int UC_TLB_CPU = 0; + public static final int UC_TLB_VIRTUAL = 1; + public static final int UC_CTL_UC_MODE = 0; public static final int UC_CTL_UC_PAGE_SIZE = 1; public static final int UC_CTL_UC_ARCH = 2; @@ -136,6 +140,8 @@ public interface UnicornConst { public static final int UC_CTL_TB_REQUEST_CACHE = 8; public static final int UC_CTL_TB_REMOVE_CACHE = 9; public static final int UC_CTL_TB_FLUSH = 10; + public static final int UC_CTL_TLB_FLUSH = 11; + public static final int UC_CTL_TLB_TYPE = 12; public static final int UC_PROT_NONE = 0; public static final int UC_PROT_READ = 1; diff --git a/bindings/pascal/unicorn/UnicornConst.pas b/bindings/pascal/unicorn/UnicornConst.pas index 2d75d4ae..8b38e8e0 100644 --- a/bindings/pascal/unicorn/UnicornConst.pas +++ b/bindings/pascal/unicorn/UnicornConst.pas @@ -109,6 +109,7 @@ const UC_API_MAJOR = 2; UC_HOOK_INSN_INVALID = 16384; UC_HOOK_EDGE_GENERATED = 32768; UC_HOOK_TCG_OPCODE = 65536; + UC_HOOK_TLB_FILL = 131072; UC_HOOK_MEM_UNMAPPED = 112; UC_HOOK_MEM_PROT = 896; UC_HOOK_MEM_READ_INVALID = 144; @@ -126,6 +127,9 @@ const UC_API_MAJOR = 2; UC_CTL_IO_READ = 2; UC_CTL_IO_READ_WRITE = 3; + UC_TLB_CPU = 0; + UC_TLB_VIRTUAL = 1; + UC_CTL_UC_MODE = 0; UC_CTL_UC_PAGE_SIZE = 1; UC_CTL_UC_ARCH = 2; @@ -137,6 +141,8 @@ const UC_API_MAJOR = 2; UC_CTL_TB_REQUEST_CACHE = 8; UC_CTL_TB_REMOVE_CACHE = 9; UC_CTL_TB_FLUSH = 10; + UC_CTL_TLB_FLUSH = 11; + UC_CTL_TLB_TYPE = 12; UC_PROT_NONE = 0; UC_PROT_READ = 1; diff --git a/bindings/python/unicorn/unicorn_const.py b/bindings/python/unicorn/unicorn_const.py index 96f2949b..64247899 100644 --- a/bindings/python/unicorn/unicorn_const.py +++ b/bindings/python/unicorn/unicorn_const.py @@ -104,6 +104,7 @@ UC_HOOK_MEM_READ_AFTER = 8192 UC_HOOK_INSN_INVALID = 16384 UC_HOOK_EDGE_GENERATED = 32768 UC_HOOK_TCG_OPCODE = 65536 +UC_HOOK_TLB_FILL = 131072 UC_HOOK_MEM_UNMAPPED = 112 UC_HOOK_MEM_PROT = 896 UC_HOOK_MEM_READ_INVALID = 144 @@ -121,6 +122,9 @@ UC_CTL_IO_WRITE = 1 UC_CTL_IO_READ = 2 UC_CTL_IO_READ_WRITE = 3 +UC_TLB_CPU = 0 +UC_TLB_VIRTUAL = 1 + UC_CTL_UC_MODE = 0 UC_CTL_UC_PAGE_SIZE = 1 UC_CTL_UC_ARCH = 2 @@ -132,6 +136,8 @@ UC_CTL_CPU_MODEL = 7 UC_CTL_TB_REQUEST_CACHE = 8 UC_CTL_TB_REMOVE_CACHE = 9 UC_CTL_TB_FLUSH = 10 +UC_CTL_TLB_FLUSH = 11 +UC_CTL_TLB_TYPE = 12 UC_PROT_NONE = 0 UC_PROT_READ = 1 diff --git a/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb index 6dbc46e0..8eaf2c36 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb @@ -106,6 +106,7 @@ module UnicornEngine UC_HOOK_INSN_INVALID = 16384 UC_HOOK_EDGE_GENERATED = 32768 UC_HOOK_TCG_OPCODE = 65536 + UC_HOOK_TLB_FILL = 131072 UC_HOOK_MEM_UNMAPPED = 112 UC_HOOK_MEM_PROT = 896 UC_HOOK_MEM_READ_INVALID = 144 @@ -123,6 +124,9 @@ module UnicornEngine UC_CTL_IO_READ = 2 UC_CTL_IO_READ_WRITE = 3 + UC_TLB_CPU = 0 + UC_TLB_VIRTUAL = 1 + UC_CTL_UC_MODE = 0 UC_CTL_UC_PAGE_SIZE = 1 UC_CTL_UC_ARCH = 2 @@ -134,6 +138,8 @@ module UnicornEngine UC_CTL_TB_REQUEST_CACHE = 8 UC_CTL_TB_REMOVE_CACHE = 9 UC_CTL_TB_FLUSH = 10 + UC_CTL_TLB_FLUSH = 11 + UC_CTL_TLB_TYPE = 12 UC_PROT_NONE = 0 UC_PROT_READ = 1 diff --git a/bindings/zig/unicorn/unicorn_const.zig b/bindings/zig/unicorn/unicorn_const.zig index b7ccad62..afebcd76 100644 --- a/bindings/zig/unicorn/unicorn_const.zig +++ b/bindings/zig/unicorn/unicorn_const.zig @@ -4,13 +4,13 @@ pub const unicornConst = enum(c_int) { API_MAJOR = 2, API_MINOR = 0, - API_PATCH = 1, - API_EXTRA = 255, + API_PATCH = 2, + API_EXTRA = 1, VERSION_MAJOR = 2, VERSION_MINOR = 0, - VERSION_PATCH = 1, - VERSION_EXTRA = 255, + VERSION_PATCH = 2, + VERSION_EXTRA = 1, SECOND_SCALE = 1000000, MILISECOND_SCALE = 1000, ARCH_ARM = 1, @@ -106,6 +106,7 @@ pub const unicornConst = enum(c_int) { HOOK_INSN_INVALID = 16384, HOOK_EDGE_GENERATED = 32768, HOOK_TCG_OPCODE = 65536, + HOOK_TLB_FILL = 131072, HOOK_MEM_UNMAPPED = 112, HOOK_MEM_PROT = 896, HOOK_MEM_READ_INVALID = 144, @@ -123,6 +124,9 @@ pub const unicornConst = enum(c_int) { CTL_IO_READ = 2, CTL_IO_READ_WRITE = 3, + TLB_CPU = 0, + TLB_VIRTUAL = 1, + CTL_UC_MODE = 0, CTL_UC_PAGE_SIZE = 1, CTL_UC_ARCH = 2, @@ -134,6 +138,8 @@ pub const unicornConst = enum(c_int) { CTL_TB_REQUEST_CACHE = 8, CTL_TB_REMOVE_CACHE = 9, CTL_TB_FLUSH = 10, + CTL_TLB_FLUSH = 11, + CTL_TLB_TYPE = 12, PROT_NONE = 0, PROT_READ = 1,