From 2a47d652a655f425077e84d9073a05f0f573c0a6 Mon Sep 17 00:00:00 2001 From: naq Date: Tue, 14 Jan 2020 09:39:18 -0500 Subject: [PATCH] bindings: update after the last commit on adding ARM modes Backports commit 3b17db0d84a2a73deb064e00966edd71338b0321 from unicorn. --- bindings/dotnet/UnicornManaged/Const/Common.fs | 3 +++ bindings/go/unicorn/unicorn_const.go | 3 +++ bindings/java/unicorn/UnicornConst.java | 3 +++ bindings/pascal/unicorn/UnicornConst.pas | 3 +++ bindings/python/unicorn/unicorn_const.py | 3 +++ bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb | 3 +++ 6 files changed, 18 insertions(+) diff --git a/bindings/dotnet/UnicornManaged/Const/Common.fs b/bindings/dotnet/UnicornManaged/Const/Common.fs index e20d5ac6..e7476686 100644 --- a/bindings/dotnet/UnicornManaged/Const/Common.fs +++ b/bindings/dotnet/UnicornManaged/Const/Common.fs @@ -31,6 +31,9 @@ module Common = let UC_MODE_THUMB = 16 let UC_MODE_MCLASS = 32 let UC_MODE_V8 = 64 + let UC_MODE_ARM926 = 128 + let UC_MODE_ARM946 = 256 + let UC_MODE_ARM1176 = 512 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 d90041f6..6bceded0 100644 --- a/bindings/go/unicorn/unicorn_const.go +++ b/bindings/go/unicorn/unicorn_const.go @@ -26,6 +26,9 @@ const ( MODE_THUMB = 16 MODE_MCLASS = 32 MODE_V8 = 64 + MODE_ARM926 = 128 + MODE_ARM946 = 256 + MODE_ARM1176 = 512 MODE_MICRO = 16 MODE_MIPS3 = 32 MODE_MIPS32R6 = 64 diff --git a/bindings/java/unicorn/UnicornConst.java b/bindings/java/unicorn/UnicornConst.java index 21244d1a..9e7c5989 100644 --- a/bindings/java/unicorn/UnicornConst.java +++ b/bindings/java/unicorn/UnicornConst.java @@ -28,6 +28,9 @@ 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_ARM926 = 128; + public static final int UC_MODE_ARM946 = 256; + public static final int UC_MODE_ARM1176 = 512; 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 5ef963ca..6b67fe21 100644 --- a/bindings/pascal/unicorn/UnicornConst.pas +++ b/bindings/pascal/unicorn/UnicornConst.pas @@ -29,6 +29,9 @@ const UC_API_MAJOR = 1; UC_MODE_THUMB = 16; UC_MODE_MCLASS = 32; UC_MODE_V8 = 64; + UC_MODE_ARM926 = 128; + UC_MODE_ARM946 = 256; + UC_MODE_ARM1176 = 512; 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 9fb3bdb2..a9f1719b 100644 --- a/bindings/python/unicorn/unicorn_const.py +++ b/bindings/python/unicorn/unicorn_const.py @@ -24,6 +24,9 @@ UC_MODE_ARM = 0 UC_MODE_THUMB = 16 UC_MODE_MCLASS = 32 UC_MODE_V8 = 64 +UC_MODE_ARM926 = 128 +UC_MODE_ARM946 = 256 +UC_MODE_ARM1176 = 512 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 71143a59..f2d0d549 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb @@ -26,6 +26,9 @@ module UnicornEngine UC_MODE_THUMB = 16 UC_MODE_MCLASS = 32 UC_MODE_V8 = 64 + UC_MODE_ARM926 = 128 + UC_MODE_ARM946 = 256 + UC_MODE_ARM1176 = 512 UC_MODE_MICRO = 16 UC_MODE_MIPS3 = 32 UC_MODE_MIPS32R6 = 64