From af1c661a12ea589ff0ad94f3edf833c0f81e07ea Mon Sep 17 00:00:00 2001 From: Mio Date: Wed, 6 Jul 2022 09:33:45 +0800 Subject: [PATCH] Update bindings --- bindings/dotnet/UnicornManaged/Const/Common.fs | 6 +++--- bindings/go/unicorn/unicorn_const.go | 6 +++--- bindings/java/unicorn/UnicornConst.java | 6 +++--- bindings/pascal/unicorn/UnicornConst.pas | 6 +++--- bindings/python/unicorn/unicorn_const.py | 6 +++--- .../ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb | 6 +++--- bindings/rust/src/unicorn_const.rs | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/bindings/dotnet/UnicornManaged/Const/Common.fs b/bindings/dotnet/UnicornManaged/Const/Common.fs index e233c479..6769998e 100644 --- a/bindings/dotnet/UnicornManaged/Const/Common.fs +++ b/bindings/dotnet/UnicornManaged/Const/Common.fs @@ -11,13 +11,13 @@ module Common = let UC_API_MINOR = 0 let UC_API_PATCH = 0 - let UC_API_EXTRA = 7 + let UC_API_EXTRA = 255 let UC_VERSION_MAJOR = 2 let UC_VERSION_MINOR = 0 let UC_VERSION_PATCH = 0 - let UC_VERSION_EXTRA = 7 + let UC_VERSION_EXTRA = 255 let UC_SECOND_SCALE = 1000000 let UC_MILISECOND_SCALE = 1000 let UC_ARCH_ARM = 1 @@ -39,10 +39,10 @@ module Common = let UC_MODE_THUMB = 16 let UC_MODE_MCLASS = 32 let UC_MODE_V8 = 64 - let UC_MODE_ARMBE8 = 128 let UC_MODE_ARM926 = 128 let UC_MODE_ARM946 = 256 let UC_MODE_ARM1176 = 512 + let UC_MODE_ARMBE8 = 1024 let UC_MODE_MICRO = 16 let UC_MODE_MIPS3 = 32 let UC_MODE_MIPS32R6 = 64 diff --git a/bindings/go/unicorn/unicorn_const.go b/bindings/go/unicorn/unicorn_const.go index 03ff44bc..74948c0b 100644 --- a/bindings/go/unicorn/unicorn_const.go +++ b/bindings/go/unicorn/unicorn_const.go @@ -6,13 +6,13 @@ const ( API_MINOR = 0 API_PATCH = 0 - API_EXTRA = 7 + API_EXTRA = 255 VERSION_MAJOR = 2 VERSION_MINOR = 0 VERSION_PATCH = 0 - VERSION_EXTRA = 7 + VERSION_EXTRA = 255 SECOND_SCALE = 1000000 MILISECOND_SCALE = 1000 ARCH_ARM = 1 @@ -34,10 +34,10 @@ const ( MODE_THUMB = 16 MODE_MCLASS = 32 MODE_V8 = 64 - MODE_ARMBE8 = 128 MODE_ARM926 = 128 MODE_ARM946 = 256 MODE_ARM1176 = 512 + MODE_ARMBE8 = 1024 MODE_MICRO = 16 MODE_MIPS3 = 32 MODE_MIPS32R6 = 64 diff --git a/bindings/java/unicorn/UnicornConst.java b/bindings/java/unicorn/UnicornConst.java index 24dd7acf..83eaa6ef 100644 --- a/bindings/java/unicorn/UnicornConst.java +++ b/bindings/java/unicorn/UnicornConst.java @@ -8,13 +8,13 @@ public interface UnicornConst { public static final int UC_API_MINOR = 0; public static final int UC_API_PATCH = 0; - public static final int UC_API_EXTRA = 7; + public static final int UC_API_EXTRA = 255; public static final int UC_VERSION_MAJOR = 2; public static final int UC_VERSION_MINOR = 0; public static final int UC_VERSION_PATCH = 0; - public static final int UC_VERSION_EXTRA = 7; + public static final int UC_VERSION_EXTRA = 255; public static final int UC_SECOND_SCALE = 1000000; public static final int UC_MILISECOND_SCALE = 1000; public static final int UC_ARCH_ARM = 1; @@ -36,10 +36,10 @@ public interface UnicornConst { public static final int UC_MODE_THUMB = 16; public static final int UC_MODE_MCLASS = 32; public static final int UC_MODE_V8 = 64; - public static final int UC_MODE_ARMBE8 = 128; public static final int UC_MODE_ARM926 = 128; public static final int UC_MODE_ARM946 = 256; public static final int UC_MODE_ARM1176 = 512; + public static final int UC_MODE_ARMBE8 = 1024; public static final int UC_MODE_MICRO = 16; public static final int UC_MODE_MIPS3 = 32; public static final int UC_MODE_MIPS32R6 = 64; diff --git a/bindings/pascal/unicorn/UnicornConst.pas b/bindings/pascal/unicorn/UnicornConst.pas index f130dda9..1f96da12 100644 --- a/bindings/pascal/unicorn/UnicornConst.pas +++ b/bindings/pascal/unicorn/UnicornConst.pas @@ -9,13 +9,13 @@ const UC_API_MAJOR = 2; UC_API_MINOR = 0; UC_API_PATCH = 0; - UC_API_EXTRA = 7; + UC_API_EXTRA = 255; UC_VERSION_MAJOR = 2; UC_VERSION_MINOR = 0; UC_VERSION_PATCH = 0; - UC_VERSION_EXTRA = 7; + UC_VERSION_EXTRA = 255; UC_SECOND_SCALE = 1000000; UC_MILISECOND_SCALE = 1000; UC_ARCH_ARM = 1; @@ -37,10 +37,10 @@ const UC_API_MAJOR = 2; UC_MODE_THUMB = 16; UC_MODE_MCLASS = 32; UC_MODE_V8 = 64; - UC_MODE_ARMBE8 = 128; UC_MODE_ARM926 = 128; UC_MODE_ARM946 = 256; UC_MODE_ARM1176 = 512; + UC_MODE_ARMBE8 = 1024; UC_MODE_MICRO = 16; UC_MODE_MIPS3 = 32; UC_MODE_MIPS32R6 = 64; diff --git a/bindings/python/unicorn/unicorn_const.py b/bindings/python/unicorn/unicorn_const.py index 28528448..5886c470 100644 --- a/bindings/python/unicorn/unicorn_const.py +++ b/bindings/python/unicorn/unicorn_const.py @@ -4,13 +4,13 @@ UC_API_MAJOR = 2 UC_API_MINOR = 0 UC_API_PATCH = 0 -UC_API_EXTRA = 7 +UC_API_EXTRA = 255 UC_VERSION_MAJOR = 2 UC_VERSION_MINOR = 0 UC_VERSION_PATCH = 0 -UC_VERSION_EXTRA = 7 +UC_VERSION_EXTRA = 255 UC_SECOND_SCALE = 1000000 UC_MILISECOND_SCALE = 1000 UC_ARCH_ARM = 1 @@ -32,10 +32,10 @@ UC_MODE_ARM = 0 UC_MODE_THUMB = 16 UC_MODE_MCLASS = 32 UC_MODE_V8 = 64 -UC_MODE_ARMBE8 = 128 UC_MODE_ARM926 = 128 UC_MODE_ARM946 = 256 UC_MODE_ARM1176 = 512 +UC_MODE_ARMBE8 = 1024 UC_MODE_MICRO = 16 UC_MODE_MIPS3 = 32 UC_MODE_MIPS32R6 = 64 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 d32f42da..16039f95 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb @@ -6,13 +6,13 @@ module UnicornEngine UC_API_MINOR = 0 UC_API_PATCH = 0 - UC_API_EXTRA = 7 + UC_API_EXTRA = 255 UC_VERSION_MAJOR = 2 UC_VERSION_MINOR = 0 UC_VERSION_PATCH = 0 - UC_VERSION_EXTRA = 7 + UC_VERSION_EXTRA = 255 UC_SECOND_SCALE = 1000000 UC_MILISECOND_SCALE = 1000 UC_ARCH_ARM = 1 @@ -34,10 +34,10 @@ module UnicornEngine UC_MODE_THUMB = 16 UC_MODE_MCLASS = 32 UC_MODE_V8 = 64 - UC_MODE_ARMBE8 = 128 UC_MODE_ARM926 = 128 UC_MODE_ARM946 = 256 UC_MODE_ARM1176 = 512 + UC_MODE_ARMBE8 = 1024 UC_MODE_MICRO = 16 UC_MODE_MIPS3 = 32 UC_MODE_MIPS32R6 = 64 diff --git a/bindings/rust/src/unicorn_const.rs b/bindings/rust/src/unicorn_const.rs index b226b8f8..7e8185d2 100644 --- a/bindings/rust/src/unicorn_const.rs +++ b/bindings/rust/src/unicorn_const.rs @@ -165,8 +165,8 @@ bitflags! { const THUMB = 0x10; const MCLASS = 0x20; const V8 = 0x40; - const ARMBE8 = 0x80; - const ARM926 = Self::ARMBE8.bits; + const ARMBE8 = 0x400; + const ARM926 = 0x80; const ARM946 = 0x100; const ARM1176 = 0x200; const MICRO = Self::THUMB.bits;