From fe807952d0c559ca9a6158136bfe35c27adba250 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Tue, 15 Sep 2015 14:17:57 +0700 Subject: [PATCH] bindings: update Sparc registers after the last core change --- bindings/go/unicorn/sparc_const.go | 38 +++++++++++++------------- bindings/java/unicorn/SparcConst.java | 38 +++++++++++++------------- bindings/python/unicorn/sparc_const.py | 38 +++++++++++++------------- 3 files changed, 57 insertions(+), 57 deletions(-) diff --git a/bindings/go/unicorn/sparc_const.go b/bindings/go/unicorn/sparc_const.go index 51e209f2..afd94f45 100644 --- a/bindings/go/unicorn/sparc_const.go +++ b/bindings/go/unicorn/sparc_const.go @@ -57,21 +57,21 @@ const ( SPARC_REG_FCC1 = 50 SPARC_REG_FCC2 = 51 SPARC_REG_FCC3 = 52 - SPARC_REG_FP = 53 - SPARC_REG_G0 = 54 - SPARC_REG_G1 = 55 - SPARC_REG_G2 = 56 - SPARC_REG_G3 = 57 - SPARC_REG_G4 = 58 - SPARC_REG_G5 = 59 - SPARC_REG_G6 = 60 - SPARC_REG_G7 = 61 - SPARC_REG_I0 = 62 - SPARC_REG_I1 = 63 - SPARC_REG_I2 = 64 - SPARC_REG_I3 = 65 - SPARC_REG_I4 = 66 - SPARC_REG_I5 = 67 + SPARC_REG_G0 = 53 + SPARC_REG_G1 = 54 + SPARC_REG_G2 = 55 + SPARC_REG_G3 = 56 + SPARC_REG_G4 = 57 + SPARC_REG_G5 = 58 + SPARC_REG_G6 = 59 + SPARC_REG_G7 = 60 + SPARC_REG_I0 = 61 + SPARC_REG_I1 = 62 + SPARC_REG_I2 = 63 + SPARC_REG_I3 = 64 + SPARC_REG_I4 = 65 + SPARC_REG_I5 = 66 + SPARC_REG_FP = 67 SPARC_REG_I7 = 68 SPARC_REG_ICC = 69 SPARC_REG_L0 = 70 @@ -88,12 +88,12 @@ const ( SPARC_REG_O3 = 81 SPARC_REG_O4 = 82 SPARC_REG_O5 = 83 - SPARC_REG_O7 = 84 - SPARC_REG_SP = 85 + SPARC_REG_SP = 84 + SPARC_REG_O7 = 85 SPARC_REG_Y = 86 SPARC_REG_XCC = 87 SPARC_REG_PC = 88 SPARC_REG_ENDING = 89 - SPARC_REG_O6 = 85 - SPARC_REG_I6 = 53 + SPARC_REG_O6 = 84 + SPARC_REG_I6 = 67 ) \ No newline at end of file diff --git a/bindings/java/unicorn/SparcConst.java b/bindings/java/unicorn/SparcConst.java index bd00c736..de0dc184 100644 --- a/bindings/java/unicorn/SparcConst.java +++ b/bindings/java/unicorn/SparcConst.java @@ -59,21 +59,21 @@ public interface SparcConst { public static final int UC_SPARC_REG_FCC1 = 50; public static final int UC_SPARC_REG_FCC2 = 51; public static final int UC_SPARC_REG_FCC3 = 52; - public static final int UC_SPARC_REG_FP = 53; - public static final int UC_SPARC_REG_G0 = 54; - public static final int UC_SPARC_REG_G1 = 55; - public static final int UC_SPARC_REG_G2 = 56; - public static final int UC_SPARC_REG_G3 = 57; - public static final int UC_SPARC_REG_G4 = 58; - public static final int UC_SPARC_REG_G5 = 59; - public static final int UC_SPARC_REG_G6 = 60; - public static final int UC_SPARC_REG_G7 = 61; - public static final int UC_SPARC_REG_I0 = 62; - public static final int UC_SPARC_REG_I1 = 63; - public static final int UC_SPARC_REG_I2 = 64; - public static final int UC_SPARC_REG_I3 = 65; - public static final int UC_SPARC_REG_I4 = 66; - public static final int UC_SPARC_REG_I5 = 67; + public static final int UC_SPARC_REG_G0 = 53; + public static final int UC_SPARC_REG_G1 = 54; + public static final int UC_SPARC_REG_G2 = 55; + public static final int UC_SPARC_REG_G3 = 56; + public static final int UC_SPARC_REG_G4 = 57; + public static final int UC_SPARC_REG_G5 = 58; + public static final int UC_SPARC_REG_G6 = 59; + public static final int UC_SPARC_REG_G7 = 60; + public static final int UC_SPARC_REG_I0 = 61; + public static final int UC_SPARC_REG_I1 = 62; + public static final int UC_SPARC_REG_I2 = 63; + public static final int UC_SPARC_REG_I3 = 64; + public static final int UC_SPARC_REG_I4 = 65; + public static final int UC_SPARC_REG_I5 = 66; + public static final int UC_SPARC_REG_FP = 67; public static final int UC_SPARC_REG_I7 = 68; public static final int UC_SPARC_REG_ICC = 69; public static final int UC_SPARC_REG_L0 = 70; @@ -90,13 +90,13 @@ public interface SparcConst { public static final int UC_SPARC_REG_O3 = 81; public static final int UC_SPARC_REG_O4 = 82; public static final int UC_SPARC_REG_O5 = 83; - public static final int UC_SPARC_REG_O7 = 84; - public static final int UC_SPARC_REG_SP = 85; + public static final int UC_SPARC_REG_SP = 84; + public static final int UC_SPARC_REG_O7 = 85; public static final int UC_SPARC_REG_Y = 86; public static final int UC_SPARC_REG_XCC = 87; public static final int UC_SPARC_REG_PC = 88; public static final int UC_SPARC_REG_ENDING = 89; - public static final int UC_SPARC_REG_O6 = 85; - public static final int UC_SPARC_REG_I6 = 53; + public static final int UC_SPARC_REG_O6 = 84; + public static final int UC_SPARC_REG_I6 = 67; } diff --git a/bindings/python/unicorn/sparc_const.py b/bindings/python/unicorn/sparc_const.py index cb66d89c..7bd326d0 100644 --- a/bindings/python/unicorn/sparc_const.py +++ b/bindings/python/unicorn/sparc_const.py @@ -55,21 +55,21 @@ UC_SPARC_REG_FCC0 = 49 UC_SPARC_REG_FCC1 = 50 UC_SPARC_REG_FCC2 = 51 UC_SPARC_REG_FCC3 = 52 -UC_SPARC_REG_FP = 53 -UC_SPARC_REG_G0 = 54 -UC_SPARC_REG_G1 = 55 -UC_SPARC_REG_G2 = 56 -UC_SPARC_REG_G3 = 57 -UC_SPARC_REG_G4 = 58 -UC_SPARC_REG_G5 = 59 -UC_SPARC_REG_G6 = 60 -UC_SPARC_REG_G7 = 61 -UC_SPARC_REG_I0 = 62 -UC_SPARC_REG_I1 = 63 -UC_SPARC_REG_I2 = 64 -UC_SPARC_REG_I3 = 65 -UC_SPARC_REG_I4 = 66 -UC_SPARC_REG_I5 = 67 +UC_SPARC_REG_G0 = 53 +UC_SPARC_REG_G1 = 54 +UC_SPARC_REG_G2 = 55 +UC_SPARC_REG_G3 = 56 +UC_SPARC_REG_G4 = 57 +UC_SPARC_REG_G5 = 58 +UC_SPARC_REG_G6 = 59 +UC_SPARC_REG_G7 = 60 +UC_SPARC_REG_I0 = 61 +UC_SPARC_REG_I1 = 62 +UC_SPARC_REG_I2 = 63 +UC_SPARC_REG_I3 = 64 +UC_SPARC_REG_I4 = 65 +UC_SPARC_REG_I5 = 66 +UC_SPARC_REG_FP = 67 UC_SPARC_REG_I7 = 68 UC_SPARC_REG_ICC = 69 UC_SPARC_REG_L0 = 70 @@ -86,11 +86,11 @@ UC_SPARC_REG_O2 = 80 UC_SPARC_REG_O3 = 81 UC_SPARC_REG_O4 = 82 UC_SPARC_REG_O5 = 83 -UC_SPARC_REG_O7 = 84 -UC_SPARC_REG_SP = 85 +UC_SPARC_REG_SP = 84 +UC_SPARC_REG_O7 = 85 UC_SPARC_REG_Y = 86 UC_SPARC_REG_XCC = 87 UC_SPARC_REG_PC = 88 UC_SPARC_REG_ENDING = 89 -UC_SPARC_REG_O6 = 85 -UC_SPARC_REG_I6 = 53 +UC_SPARC_REG_O6 = 84 +UC_SPARC_REG_I6 = 67