Skip to content

Commit 9c01d23

Browse files
wtdcodePhilippTakacs
authored andcommitted
Update bindings const
1 parent 9f00bb2 commit 9c01d23

File tree

7 files changed

+46
-4
lines changed

7 files changed

+46
-4
lines changed

bindings/dotnet/UnicornEngine/Const/Common.fs

+6
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ module Common =
111111
let UC_HOOK_INSN_INVALID = 16384
112112
let UC_HOOK_EDGE_GENERATED = 32768
113113
let UC_HOOK_TCG_OPCODE = 65536
114+
let UC_HOOK_TLB_FILL = 131072
114115
let UC_HOOK_MEM_UNMAPPED = 112
115116
let UC_HOOK_MEM_PROT = 896
116117
let UC_HOOK_MEM_READ_INVALID = 144
@@ -128,6 +129,9 @@ module Common =
128129
let UC_CTL_IO_READ = 2
129130
let UC_CTL_IO_READ_WRITE = 3
130131

132+
let UC_TLB_CPU = 0
133+
let UC_TLB_VIRTUAL = 1
134+
131135
let UC_CTL_UC_MODE = 0
132136
let UC_CTL_UC_PAGE_SIZE = 1
133137
let UC_CTL_UC_ARCH = 2
@@ -139,6 +143,8 @@ module Common =
139143
let UC_CTL_TB_REQUEST_CACHE = 8
140144
let UC_CTL_TB_REMOVE_CACHE = 9
141145
let UC_CTL_TB_FLUSH = 10
146+
let UC_CTL_TLB_FLUSH = 11
147+
let UC_CTL_TLB_TYPE = 12
142148

143149
let UC_PROT_NONE = 0
144150
let UC_PROT_READ = 1

bindings/go/unicorn/unicorn_const.go

+6
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const (
106106
HOOK_INSN_INVALID = 16384
107107
HOOK_EDGE_GENERATED = 32768
108108
HOOK_TCG_OPCODE = 65536
109+
HOOK_TLB_FILL = 131072
109110
HOOK_MEM_UNMAPPED = 112
110111
HOOK_MEM_PROT = 896
111112
HOOK_MEM_READ_INVALID = 144
@@ -123,6 +124,9 @@ const (
123124
CTL_IO_READ = 2
124125
CTL_IO_READ_WRITE = 3
125126

127+
TLB_CPU = 0
128+
TLB_VIRTUAL = 1
129+
126130
CTL_UC_MODE = 0
127131
CTL_UC_PAGE_SIZE = 1
128132
CTL_UC_ARCH = 2
@@ -134,6 +138,8 @@ const (
134138
CTL_TB_REQUEST_CACHE = 8
135139
CTL_TB_REMOVE_CACHE = 9
136140
CTL_TB_FLUSH = 10
141+
CTL_TLB_FLUSH = 11
142+
CTL_TLB_TYPE = 12
137143

138144
PROT_NONE = 0
139145
PROT_READ = 1

bindings/java/unicorn/UnicornConst.java

+6
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public interface UnicornConst {
108108
public static final int UC_HOOK_INSN_INVALID = 16384;
109109
public static final int UC_HOOK_EDGE_GENERATED = 32768;
110110
public static final int UC_HOOK_TCG_OPCODE = 65536;
111+
public static final int UC_HOOK_TLB_FILL = 131072;
111112
public static final int UC_HOOK_MEM_UNMAPPED = 112;
112113
public static final int UC_HOOK_MEM_PROT = 896;
113114
public static final int UC_HOOK_MEM_READ_INVALID = 144;
@@ -125,6 +126,9 @@ public interface UnicornConst {
125126
public static final int UC_CTL_IO_READ = 2;
126127
public static final int UC_CTL_IO_READ_WRITE = 3;
127128

129+
public static final int UC_TLB_CPU = 0;
130+
public static final int UC_TLB_VIRTUAL = 1;
131+
128132
public static final int UC_CTL_UC_MODE = 0;
129133
public static final int UC_CTL_UC_PAGE_SIZE = 1;
130134
public static final int UC_CTL_UC_ARCH = 2;
@@ -136,6 +140,8 @@ public interface UnicornConst {
136140
public static final int UC_CTL_TB_REQUEST_CACHE = 8;
137141
public static final int UC_CTL_TB_REMOVE_CACHE = 9;
138142
public static final int UC_CTL_TB_FLUSH = 10;
143+
public static final int UC_CTL_TLB_FLUSH = 11;
144+
public static final int UC_CTL_TLB_TYPE = 12;
139145

140146
public static final int UC_PROT_NONE = 0;
141147
public static final int UC_PROT_READ = 1;

bindings/pascal/unicorn/UnicornConst.pas

+6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ interface
109109
UC_HOOK_INSN_INVALID = 16384;
110110
UC_HOOK_EDGE_GENERATED = 32768;
111111
UC_HOOK_TCG_OPCODE = 65536;
112+
UC_HOOK_TLB_FILL = 131072;
112113
UC_HOOK_MEM_UNMAPPED = 112;
113114
UC_HOOK_MEM_PROT = 896;
114115
UC_HOOK_MEM_READ_INVALID = 144;
@@ -126,6 +127,9 @@ interface
126127
UC_CTL_IO_READ = 2;
127128
UC_CTL_IO_READ_WRITE = 3;
128129

130+
UC_TLB_CPU = 0;
131+
UC_TLB_VIRTUAL = 1;
132+
129133
UC_CTL_UC_MODE = 0;
130134
UC_CTL_UC_PAGE_SIZE = 1;
131135
UC_CTL_UC_ARCH = 2;
@@ -137,6 +141,8 @@ interface
137141
UC_CTL_TB_REQUEST_CACHE = 8;
138142
UC_CTL_TB_REMOVE_CACHE = 9;
139143
UC_CTL_TB_FLUSH = 10;
144+
UC_CTL_TLB_FLUSH = 11;
145+
UC_CTL_TLB_TYPE = 12;
140146

141147
UC_PROT_NONE = 0;
142148
UC_PROT_READ = 1;

bindings/python/unicorn/unicorn_const.py

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
UC_HOOK_INSN_INVALID = 16384
105105
UC_HOOK_EDGE_GENERATED = 32768
106106
UC_HOOK_TCG_OPCODE = 65536
107+
UC_HOOK_TLB_FILL = 131072
107108
UC_HOOK_MEM_UNMAPPED = 112
108109
UC_HOOK_MEM_PROT = 896
109110
UC_HOOK_MEM_READ_INVALID = 144
@@ -121,6 +122,9 @@
121122
UC_CTL_IO_READ = 2
122123
UC_CTL_IO_READ_WRITE = 3
123124

125+
UC_TLB_CPU = 0
126+
UC_TLB_VIRTUAL = 1
127+
124128
UC_CTL_UC_MODE = 0
125129
UC_CTL_UC_PAGE_SIZE = 1
126130
UC_CTL_UC_ARCH = 2
@@ -132,6 +136,8 @@
132136
UC_CTL_TB_REQUEST_CACHE = 8
133137
UC_CTL_TB_REMOVE_CACHE = 9
134138
UC_CTL_TB_FLUSH = 10
139+
UC_CTL_TLB_FLUSH = 11
140+
UC_CTL_TLB_TYPE = 12
135141

136142
UC_PROT_NONE = 0
137143
UC_PROT_READ = 1

bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb

+6
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ module UnicornEngine
106106
UC_HOOK_INSN_INVALID = 16384
107107
UC_HOOK_EDGE_GENERATED = 32768
108108
UC_HOOK_TCG_OPCODE = 65536
109+
UC_HOOK_TLB_FILL = 131072
109110
UC_HOOK_MEM_UNMAPPED = 112
110111
UC_HOOK_MEM_PROT = 896
111112
UC_HOOK_MEM_READ_INVALID = 144
@@ -123,6 +124,9 @@ module UnicornEngine
123124
UC_CTL_IO_READ = 2
124125
UC_CTL_IO_READ_WRITE = 3
125126

127+
UC_TLB_CPU = 0
128+
UC_TLB_VIRTUAL = 1
129+
126130
UC_CTL_UC_MODE = 0
127131
UC_CTL_UC_PAGE_SIZE = 1
128132
UC_CTL_UC_ARCH = 2
@@ -134,6 +138,8 @@ module UnicornEngine
134138
UC_CTL_TB_REQUEST_CACHE = 8
135139
UC_CTL_TB_REMOVE_CACHE = 9
136140
UC_CTL_TB_FLUSH = 10
141+
UC_CTL_TLB_FLUSH = 11
142+
UC_CTL_TLB_TYPE = 12
137143

138144
UC_PROT_NONE = 0
139145
UC_PROT_READ = 1

bindings/zig/unicorn/unicorn_const.zig

+10-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ pub const unicornConst = enum(c_int) {
44
API_MAJOR = 2,
55

66
API_MINOR = 0,
7-
API_PATCH = 1,
8-
API_EXTRA = 255,
7+
API_PATCH = 2,
8+
API_EXTRA = 1,
99
VERSION_MAJOR = 2,
1010

1111
VERSION_MINOR = 0,
12-
VERSION_PATCH = 1,
13-
VERSION_EXTRA = 255,
12+
VERSION_PATCH = 2,
13+
VERSION_EXTRA = 1,
1414
SECOND_SCALE = 1000000,
1515
MILISECOND_SCALE = 1000,
1616
ARCH_ARM = 1,
@@ -106,6 +106,7 @@ pub const unicornConst = enum(c_int) {
106106
HOOK_INSN_INVALID = 16384,
107107
HOOK_EDGE_GENERATED = 32768,
108108
HOOK_TCG_OPCODE = 65536,
109+
HOOK_TLB_FILL = 131072,
109110
HOOK_MEM_UNMAPPED = 112,
110111
HOOK_MEM_PROT = 896,
111112
HOOK_MEM_READ_INVALID = 144,
@@ -123,6 +124,9 @@ pub const unicornConst = enum(c_int) {
123124
CTL_IO_READ = 2,
124125
CTL_IO_READ_WRITE = 3,
125126

127+
TLB_CPU = 0,
128+
TLB_VIRTUAL = 1,
129+
126130
CTL_UC_MODE = 0,
127131
CTL_UC_PAGE_SIZE = 1,
128132
CTL_UC_ARCH = 2,
@@ -134,6 +138,8 @@ pub const unicornConst = enum(c_int) {
134138
CTL_TB_REQUEST_CACHE = 8,
135139
CTL_TB_REMOVE_CACHE = 9,
136140
CTL_TB_FLUSH = 10,
141+
CTL_TLB_FLUSH = 11,
142+
CTL_TLB_TYPE = 12,
137143

138144
PROT_NONE = 0,
139145
PROT_READ = 1,

0 commit comments

Comments
 (0)