From 8c8852b914bd7ee7e3f62912417335ca8dfd1a85 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 28 Feb 2019 16:34:42 -0500 Subject: [PATCH] bindings: add newly added register MXCSR Backports commit 738d10298952d195799ce16721feffe5cb8f07bb from unicorn. --- bindings/dotnet/UnicornManaged/Const/X86.fs | 3 ++- bindings/go/unicorn/x86_const.go | 3 ++- bindings/java/unicorn/X86Const.java | 3 ++- bindings/python/unicorn/x86_const.py | 3 ++- bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bindings/dotnet/UnicornManaged/Const/X86.fs b/bindings/dotnet/UnicornManaged/Const/X86.fs index 2dc3f61f..5112ae2d 100644 --- a/bindings/dotnet/UnicornManaged/Const/X86.fs +++ b/bindings/dotnet/UnicornManaged/Const/X86.fs @@ -258,7 +258,8 @@ module X86 = let UC_X86_REG_FPCW = 246 let UC_X86_REG_FPTAG = 247 let UC_X86_REG_MSR = 248 - let UC_X86_REG_ENDING = 249 + let UC_X86_REG_MXCSR = 249 + let UC_X86_REG_ENDING = 250 // X86 instructions diff --git a/bindings/go/unicorn/x86_const.go b/bindings/go/unicorn/x86_const.go index bd47e3e2..847efe2c 100644 --- a/bindings/go/unicorn/x86_const.go +++ b/bindings/go/unicorn/x86_const.go @@ -253,7 +253,8 @@ const ( X86_REG_FPCW = 246 X86_REG_FPTAG = 247 X86_REG_MSR = 248 - X86_REG_ENDING = 249 + X86_REG_MXCSR = 249 + X86_REG_ENDING = 250 // X86 instructions diff --git a/bindings/java/unicorn/X86Const.java b/bindings/java/unicorn/X86Const.java index c41ccfc9..2f1f2930 100644 --- a/bindings/java/unicorn/X86Const.java +++ b/bindings/java/unicorn/X86Const.java @@ -255,7 +255,8 @@ public interface X86Const { public static final int UC_X86_REG_FPCW = 246; public static final int UC_X86_REG_FPTAG = 247; public static final int UC_X86_REG_MSR = 248; - public static final int UC_X86_REG_ENDING = 249; + public static final int UC_X86_REG_MXCSR = 249; + public static final int UC_X86_REG_ENDING = 250; // X86 instructions diff --git a/bindings/python/unicorn/x86_const.py b/bindings/python/unicorn/x86_const.py index 5642c543..154f70a5 100644 --- a/bindings/python/unicorn/x86_const.py +++ b/bindings/python/unicorn/x86_const.py @@ -251,7 +251,8 @@ UC_X86_REG_TR = 245 UC_X86_REG_FPCW = 246 UC_X86_REG_FPTAG = 247 UC_X86_REG_MSR = 248 -UC_X86_REG_ENDING = 249 +UC_X86_REG_MXCSR = 249 +UC_X86_REG_ENDING = 250 # X86 instructions diff --git a/bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb index 5d7fd63a..e156236f 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb @@ -253,7 +253,8 @@ module UnicornEngine UC_X86_REG_FPCW = 246 UC_X86_REG_FPTAG = 247 UC_X86_REG_MSR = 248 - UC_X86_REG_ENDING = 249 + UC_X86_REG_MXCSR = 249 + UC_X86_REG_ENDING = 250 # X86 instructions