From 89a1da9a332956ee2e5cba04d51a4e7f17ea3c3b Mon Sep 17 00:00:00 2001 From: lazymio Date: Fri, 11 Feb 2022 22:42:31 +0100 Subject: [PATCH] Update bindings --- bindings/dotnet/UnicornManaged/Const/Arm.fs | 3 ++- bindings/dotnet/UnicornManaged/Const/Arm64.fs | 11 ++++++----- bindings/go/unicorn/arm64_const.go | 11 ++++++----- bindings/go/unicorn/arm_const.go | 3 ++- bindings/java/unicorn/Arm64Const.java | 11 ++++++----- bindings/java/unicorn/ArmConst.java | 3 ++- bindings/pascal/unicorn/Arm64Const.pas | 11 ++++++----- bindings/pascal/unicorn/ArmConst.pas | 3 ++- bindings/python/unicorn/arm64_const.py | 11 ++++++----- bindings/python/unicorn/arm_const.py | 3 ++- .../unicorn_gem/lib/unicorn_engine/arm64_const.rb | 11 ++++++----- .../ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb | 3 ++- 12 files changed, 48 insertions(+), 36 deletions(-) diff --git a/bindings/dotnet/UnicornManaged/Const/Arm.fs b/bindings/dotnet/UnicornManaged/Const/Arm.fs index 326b32db..d41da379 100644 --- a/bindings/dotnet/UnicornManaged/Const/Arm.fs +++ b/bindings/dotnet/UnicornManaged/Const/Arm.fs @@ -185,7 +185,8 @@ module Arm = let UC_ARM_REG_XPSR_NZCVQ = 136 let UC_ARM_REG_XPSR_G = 137 let UC_ARM_REG_XPSR_NZCVQG = 138 - let UC_ARM_REG_ENDING = 139 + let UC_ARM_REG_CP_REG = 139 + let UC_ARM_REG_ENDING = 140 // alias registers let UC_ARM_REG_R13 = 12 diff --git a/bindings/dotnet/UnicornManaged/Const/Arm64.fs b/bindings/dotnet/UnicornManaged/Const/Arm64.fs index 31d6d203..18ac8c47 100644 --- a/bindings/dotnet/UnicornManaged/Const/Arm64.fs +++ b/bindings/dotnet/UnicornManaged/Const/Arm64.fs @@ -281,25 +281,25 @@ module Arm64 = let UC_ARM64_REG_PC = 260 let UC_ARM64_REG_CPACR_EL1 = 261 - // thread registers + // thread registers, depreciated, use UC_ARM64_REG_CP_REG instead let UC_ARM64_REG_TPIDR_EL0 = 262 let UC_ARM64_REG_TPIDRRO_EL0 = 263 let UC_ARM64_REG_TPIDR_EL1 = 264 let UC_ARM64_REG_PSTATE = 265 - // exception link registers + // exception link registers, depreciated, use UC_ARM64_REG_CP_REG instead let UC_ARM64_REG_ELR_EL0 = 266 let UC_ARM64_REG_ELR_EL1 = 267 let UC_ARM64_REG_ELR_EL2 = 268 let UC_ARM64_REG_ELR_EL3 = 269 - // stack pointers registers + // stack pointers registers, depreciated, use UC_ARM64_REG_CP_REG instead let UC_ARM64_REG_SP_EL0 = 270 let UC_ARM64_REG_SP_EL1 = 271 let UC_ARM64_REG_SP_EL2 = 272 let UC_ARM64_REG_SP_EL3 = 273 - // other CP15 registers + // other CP15 registers, depreciated, use UC_ARM64_REG_CP_REG instead let UC_ARM64_REG_TTBR0_EL1 = 274 let UC_ARM64_REG_TTBR1_EL1 = 275 let UC_ARM64_REG_ESR_EL0 = 276 @@ -316,7 +316,8 @@ module Arm64 = let UC_ARM64_REG_VBAR_EL1 = 287 let UC_ARM64_REG_VBAR_EL2 = 288 let UC_ARM64_REG_VBAR_EL3 = 289 - let UC_ARM64_REG_ENDING = 290 + let UC_ARM64_REG_CP_REG = 290 + let UC_ARM64_REG_ENDING = 291 // alias registers let UC_ARM64_REG_IP0 = 215 diff --git a/bindings/go/unicorn/arm64_const.go b/bindings/go/unicorn/arm64_const.go index 25c4702a..c360e721 100644 --- a/bindings/go/unicorn/arm64_const.go +++ b/bindings/go/unicorn/arm64_const.go @@ -276,25 +276,25 @@ const ( ARM64_REG_PC = 260 ARM64_REG_CPACR_EL1 = 261 -// thread registers +// thread registers, depreciated, use UC_ARM64_REG_CP_REG instead ARM64_REG_TPIDR_EL0 = 262 ARM64_REG_TPIDRRO_EL0 = 263 ARM64_REG_TPIDR_EL1 = 264 ARM64_REG_PSTATE = 265 -// exception link registers +// exception link registers, depreciated, use UC_ARM64_REG_CP_REG instead ARM64_REG_ELR_EL0 = 266 ARM64_REG_ELR_EL1 = 267 ARM64_REG_ELR_EL2 = 268 ARM64_REG_ELR_EL3 = 269 -// stack pointers registers +// stack pointers registers, depreciated, use UC_ARM64_REG_CP_REG instead ARM64_REG_SP_EL0 = 270 ARM64_REG_SP_EL1 = 271 ARM64_REG_SP_EL2 = 272 ARM64_REG_SP_EL3 = 273 -// other CP15 registers +// other CP15 registers, depreciated, use UC_ARM64_REG_CP_REG instead ARM64_REG_TTBR0_EL1 = 274 ARM64_REG_TTBR1_EL1 = 275 ARM64_REG_ESR_EL0 = 276 @@ -311,7 +311,8 @@ const ( ARM64_REG_VBAR_EL1 = 287 ARM64_REG_VBAR_EL2 = 288 ARM64_REG_VBAR_EL3 = 289 - ARM64_REG_ENDING = 290 + ARM64_REG_CP_REG = 290 + ARM64_REG_ENDING = 291 // alias registers ARM64_REG_IP0 = 215 diff --git a/bindings/go/unicorn/arm_const.go b/bindings/go/unicorn/arm_const.go index 81eac268..c1c9602e 100644 --- a/bindings/go/unicorn/arm_const.go +++ b/bindings/go/unicorn/arm_const.go @@ -180,7 +180,8 @@ const ( ARM_REG_XPSR_NZCVQ = 136 ARM_REG_XPSR_G = 137 ARM_REG_XPSR_NZCVQG = 138 - ARM_REG_ENDING = 139 + ARM_REG_CP_REG = 139 + ARM_REG_ENDING = 140 // alias registers ARM_REG_R13 = 12 diff --git a/bindings/java/unicorn/Arm64Const.java b/bindings/java/unicorn/Arm64Const.java index 787c5c13..1a61a9c2 100644 --- a/bindings/java/unicorn/Arm64Const.java +++ b/bindings/java/unicorn/Arm64Const.java @@ -278,25 +278,25 @@ public interface Arm64Const { public static final int UC_ARM64_REG_PC = 260; public static final int UC_ARM64_REG_CPACR_EL1 = 261; -// thread registers +// thread registers, depreciated, use UC_ARM64_REG_CP_REG instead public static final int UC_ARM64_REG_TPIDR_EL0 = 262; public static final int UC_ARM64_REG_TPIDRRO_EL0 = 263; public static final int UC_ARM64_REG_TPIDR_EL1 = 264; public static final int UC_ARM64_REG_PSTATE = 265; -// exception link registers +// exception link registers, depreciated, use UC_ARM64_REG_CP_REG instead public static final int UC_ARM64_REG_ELR_EL0 = 266; public static final int UC_ARM64_REG_ELR_EL1 = 267; public static final int UC_ARM64_REG_ELR_EL2 = 268; public static final int UC_ARM64_REG_ELR_EL3 = 269; -// stack pointers registers +// stack pointers registers, depreciated, use UC_ARM64_REG_CP_REG instead public static final int UC_ARM64_REG_SP_EL0 = 270; public static final int UC_ARM64_REG_SP_EL1 = 271; public static final int UC_ARM64_REG_SP_EL2 = 272; public static final int UC_ARM64_REG_SP_EL3 = 273; -// other CP15 registers +// other CP15 registers, depreciated, use UC_ARM64_REG_CP_REG instead public static final int UC_ARM64_REG_TTBR0_EL1 = 274; public static final int UC_ARM64_REG_TTBR1_EL1 = 275; public static final int UC_ARM64_REG_ESR_EL0 = 276; @@ -313,7 +313,8 @@ public interface Arm64Const { public static final int UC_ARM64_REG_VBAR_EL1 = 287; public static final int UC_ARM64_REG_VBAR_EL2 = 288; public static final int UC_ARM64_REG_VBAR_EL3 = 289; - public static final int UC_ARM64_REG_ENDING = 290; + public static final int UC_ARM64_REG_CP_REG = 290; + public static final int UC_ARM64_REG_ENDING = 291; // alias registers public static final int UC_ARM64_REG_IP0 = 215; diff --git a/bindings/java/unicorn/ArmConst.java b/bindings/java/unicorn/ArmConst.java index 6524a8b3..94d12c8c 100644 --- a/bindings/java/unicorn/ArmConst.java +++ b/bindings/java/unicorn/ArmConst.java @@ -182,7 +182,8 @@ public interface ArmConst { public static final int UC_ARM_REG_XPSR_NZCVQ = 136; public static final int UC_ARM_REG_XPSR_G = 137; public static final int UC_ARM_REG_XPSR_NZCVQG = 138; - public static final int UC_ARM_REG_ENDING = 139; + public static final int UC_ARM_REG_CP_REG = 139; + public static final int UC_ARM_REG_ENDING = 140; // alias registers public static final int UC_ARM_REG_R13 = 12; diff --git a/bindings/pascal/unicorn/Arm64Const.pas b/bindings/pascal/unicorn/Arm64Const.pas index 88dd2dc3..43940e18 100644 --- a/bindings/pascal/unicorn/Arm64Const.pas +++ b/bindings/pascal/unicorn/Arm64Const.pas @@ -279,25 +279,25 @@ const UC_ARM64_REG_PC = 260; UC_ARM64_REG_CPACR_EL1 = 261; -// thread registers +// thread registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_TPIDR_EL0 = 262; UC_ARM64_REG_TPIDRRO_EL0 = 263; UC_ARM64_REG_TPIDR_EL1 = 264; UC_ARM64_REG_PSTATE = 265; -// exception link registers +// exception link registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_ELR_EL0 = 266; UC_ARM64_REG_ELR_EL1 = 267; UC_ARM64_REG_ELR_EL2 = 268; UC_ARM64_REG_ELR_EL3 = 269; -// stack pointers registers +// stack pointers registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_SP_EL0 = 270; UC_ARM64_REG_SP_EL1 = 271; UC_ARM64_REG_SP_EL2 = 272; UC_ARM64_REG_SP_EL3 = 273; -// other CP15 registers +// other CP15 registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_TTBR0_EL1 = 274; UC_ARM64_REG_TTBR1_EL1 = 275; UC_ARM64_REG_ESR_EL0 = 276; @@ -314,7 +314,8 @@ const UC_ARM64_REG_VBAR_EL1 = 287; UC_ARM64_REG_VBAR_EL2 = 288; UC_ARM64_REG_VBAR_EL3 = 289; - UC_ARM64_REG_ENDING = 290; + UC_ARM64_REG_CP_REG = 290; + UC_ARM64_REG_ENDING = 291; // alias registers UC_ARM64_REG_IP0 = 215; diff --git a/bindings/pascal/unicorn/ArmConst.pas b/bindings/pascal/unicorn/ArmConst.pas index c62e9c6c..b1524a73 100644 --- a/bindings/pascal/unicorn/ArmConst.pas +++ b/bindings/pascal/unicorn/ArmConst.pas @@ -183,7 +183,8 @@ const UC_ARM_REG_XPSR_NZCVQ = 136; UC_ARM_REG_XPSR_G = 137; UC_ARM_REG_XPSR_NZCVQG = 138; - UC_ARM_REG_ENDING = 139; + UC_ARM_REG_CP_REG = 139; + UC_ARM_REG_ENDING = 140; // alias registers UC_ARM_REG_R13 = 12; diff --git a/bindings/python/unicorn/arm64_const.py b/bindings/python/unicorn/arm64_const.py index 8644a3ee..0c5d46a3 100644 --- a/bindings/python/unicorn/arm64_const.py +++ b/bindings/python/unicorn/arm64_const.py @@ -274,25 +274,25 @@ UC_ARM64_REG_V31 = 259 UC_ARM64_REG_PC = 260 UC_ARM64_REG_CPACR_EL1 = 261 -# thread registers +# thread registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_TPIDR_EL0 = 262 UC_ARM64_REG_TPIDRRO_EL0 = 263 UC_ARM64_REG_TPIDR_EL1 = 264 UC_ARM64_REG_PSTATE = 265 -# exception link registers +# exception link registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_ELR_EL0 = 266 UC_ARM64_REG_ELR_EL1 = 267 UC_ARM64_REG_ELR_EL2 = 268 UC_ARM64_REG_ELR_EL3 = 269 -# stack pointers registers +# stack pointers registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_SP_EL0 = 270 UC_ARM64_REG_SP_EL1 = 271 UC_ARM64_REG_SP_EL2 = 272 UC_ARM64_REG_SP_EL3 = 273 -# other CP15 registers +# other CP15 registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_TTBR0_EL1 = 274 UC_ARM64_REG_TTBR1_EL1 = 275 UC_ARM64_REG_ESR_EL0 = 276 @@ -309,7 +309,8 @@ UC_ARM64_REG_VBAR_EL0 = 286 UC_ARM64_REG_VBAR_EL1 = 287 UC_ARM64_REG_VBAR_EL2 = 288 UC_ARM64_REG_VBAR_EL3 = 289 -UC_ARM64_REG_ENDING = 290 +UC_ARM64_REG_CP_REG = 290 +UC_ARM64_REG_ENDING = 291 # alias registers UC_ARM64_REG_IP0 = 215 diff --git a/bindings/python/unicorn/arm_const.py b/bindings/python/unicorn/arm_const.py index be63377c..f681f047 100644 --- a/bindings/python/unicorn/arm_const.py +++ b/bindings/python/unicorn/arm_const.py @@ -178,7 +178,8 @@ UC_ARM_REG_EAPSR_NZCVQG = 135 UC_ARM_REG_XPSR_NZCVQ = 136 UC_ARM_REG_XPSR_G = 137 UC_ARM_REG_XPSR_NZCVQG = 138 -UC_ARM_REG_ENDING = 139 +UC_ARM_REG_CP_REG = 139 +UC_ARM_REG_ENDING = 140 # alias registers UC_ARM_REG_R13 = 12 diff --git a/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm64_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm64_const.rb index e932f021..f47b841a 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm64_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm64_const.rb @@ -276,25 +276,25 @@ module UnicornEngine UC_ARM64_REG_PC = 260 UC_ARM64_REG_CPACR_EL1 = 261 -# thread registers +# thread registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_TPIDR_EL0 = 262 UC_ARM64_REG_TPIDRRO_EL0 = 263 UC_ARM64_REG_TPIDR_EL1 = 264 UC_ARM64_REG_PSTATE = 265 -# exception link registers +# exception link registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_ELR_EL0 = 266 UC_ARM64_REG_ELR_EL1 = 267 UC_ARM64_REG_ELR_EL2 = 268 UC_ARM64_REG_ELR_EL3 = 269 -# stack pointers registers +# stack pointers registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_SP_EL0 = 270 UC_ARM64_REG_SP_EL1 = 271 UC_ARM64_REG_SP_EL2 = 272 UC_ARM64_REG_SP_EL3 = 273 -# other CP15 registers +# other CP15 registers, depreciated, use UC_ARM64_REG_CP_REG instead UC_ARM64_REG_TTBR0_EL1 = 274 UC_ARM64_REG_TTBR1_EL1 = 275 UC_ARM64_REG_ESR_EL0 = 276 @@ -311,7 +311,8 @@ module UnicornEngine UC_ARM64_REG_VBAR_EL1 = 287 UC_ARM64_REG_VBAR_EL2 = 288 UC_ARM64_REG_VBAR_EL3 = 289 - UC_ARM64_REG_ENDING = 290 + UC_ARM64_REG_CP_REG = 290 + UC_ARM64_REG_ENDING = 291 # alias registers UC_ARM64_REG_IP0 = 215 diff --git a/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb index 232e0161..e9d86c89 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/arm_const.rb @@ -180,7 +180,8 @@ module UnicornEngine UC_ARM_REG_XPSR_NZCVQ = 136 UC_ARM_REG_XPSR_G = 137 UC_ARM_REG_XPSR_NZCVQG = 138 - UC_ARM_REG_ENDING = 139 + UC_ARM_REG_CP_REG = 139 + UC_ARM_REG_ENDING = 140 # alias registers UC_ARM_REG_R13 = 12