Skip to content

Commit 6da43e2

Browse files
authored
Merge pull request #1572 from iii-i/x86-holes
Add "holes" to where the removed x86 registers used to be
2 parents 966798f + 28c4c66 commit 6da43e2

File tree

8 files changed

+1496
-1496
lines changed

8 files changed

+1496
-1496
lines changed

bindings/dotnet/UnicornManaged/Const/X86.fs

+213-213
Large diffs are not rendered by default.

bindings/go/unicorn/x86_const.go

+213-213
Large diffs are not rendered by default.

bindings/java/unicorn/X86Const.java

+213-213
Large diffs are not rendered by default.

bindings/pascal/unicorn/X86Const.pas

+213-213
Large diffs are not rendered by default.

bindings/python/unicorn/x86_const.py

+213-213
Large diffs are not rendered by default.

bindings/ruby/unicorn_gem/lib/unicorn_engine/x86_const.rb

+213-213
Large diffs are not rendered by default.

bindings/rust/src/x86.rs

+213-213
Large diffs are not rendered by default.

include/unicorn/x86.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ typedef enum uc_x86_reg {
112112
UC_X86_REG_EDX,
113113
UC_X86_REG_EFLAGS,
114114
UC_X86_REG_EIP,
115-
UC_X86_REG_ES,
115+
UC_X86_REG_ES = UC_X86_REG_EIP + 2,
116116
UC_X86_REG_ESI,
117117
UC_X86_REG_ESP,
118118
UC_X86_REG_FPSW,
@@ -126,7 +126,7 @@ typedef enum uc_x86_reg {
126126
UC_X86_REG_RDI,
127127
UC_X86_REG_RDX,
128128
UC_X86_REG_RIP,
129-
UC_X86_REG_RSI,
129+
UC_X86_REG_RSI = UC_X86_REG_RIP + 2,
130130
UC_X86_REG_RSP,
131131
UC_X86_REG_SI,
132132
UC_X86_REG_SIL,
@@ -138,16 +138,16 @@ typedef enum uc_x86_reg {
138138
UC_X86_REG_CR2,
139139
UC_X86_REG_CR3,
140140
UC_X86_REG_CR4,
141-
UC_X86_REG_CR8,
142-
UC_X86_REG_DR0,
141+
UC_X86_REG_CR8 = UC_X86_REG_CR4 + 4,
142+
UC_X86_REG_DR0 = UC_X86_REG_CR8 + 8,
143143
UC_X86_REG_DR1,
144144
UC_X86_REG_DR2,
145145
UC_X86_REG_DR3,
146146
UC_X86_REG_DR4,
147147
UC_X86_REG_DR5,
148148
UC_X86_REG_DR6,
149149
UC_X86_REG_DR7,
150-
UC_X86_REG_FP0,
150+
UC_X86_REG_FP0 = UC_X86_REG_DR7 + 9,
151151
UC_X86_REG_FP1,
152152
UC_X86_REG_FP2,
153153
UC_X86_REG_FP3,

0 commit comments

Comments
 (0)