Add "holes" to where the removed x86 registers used to be
A number of x86 registers were removed for #1440, causing a change in numbering for many other registers. This is causing inconveniences at the moment, e.g. it's not possible to use the Unicorn2 shared library as a drop-in replacement for the Unicorn1 one. Restore the old numbering. Fixes #1492.
This commit is contained in:
@@ -112,7 +112,7 @@ typedef enum uc_x86_reg {
|
||||
UC_X86_REG_EDX,
|
||||
UC_X86_REG_EFLAGS,
|
||||
UC_X86_REG_EIP,
|
||||
UC_X86_REG_ES,
|
||||
UC_X86_REG_ES = UC_X86_REG_EIP + 2,
|
||||
UC_X86_REG_ESI,
|
||||
UC_X86_REG_ESP,
|
||||
UC_X86_REG_FPSW,
|
||||
@@ -126,7 +126,7 @@ typedef enum uc_x86_reg {
|
||||
UC_X86_REG_RDI,
|
||||
UC_X86_REG_RDX,
|
||||
UC_X86_REG_RIP,
|
||||
UC_X86_REG_RSI,
|
||||
UC_X86_REG_RSI = UC_X86_REG_RIP + 2,
|
||||
UC_X86_REG_RSP,
|
||||
UC_X86_REG_SI,
|
||||
UC_X86_REG_SIL,
|
||||
@@ -138,8 +138,8 @@ typedef enum uc_x86_reg {
|
||||
UC_X86_REG_CR2,
|
||||
UC_X86_REG_CR3,
|
||||
UC_X86_REG_CR4,
|
||||
UC_X86_REG_CR8,
|
||||
UC_X86_REG_DR0,
|
||||
UC_X86_REG_CR8 = UC_X86_REG_CR4 + 4,
|
||||
UC_X86_REG_DR0 = UC_X86_REG_CR8 + 8,
|
||||
UC_X86_REG_DR1,
|
||||
UC_X86_REG_DR2,
|
||||
UC_X86_REG_DR3,
|
||||
@@ -147,7 +147,7 @@ typedef enum uc_x86_reg {
|
||||
UC_X86_REG_DR5,
|
||||
UC_X86_REG_DR6,
|
||||
UC_X86_REG_DR7,
|
||||
UC_X86_REG_FP0,
|
||||
UC_X86_REG_FP0 = UC_X86_REG_DR7 + 9,
|
||||
UC_X86_REG_FP1,
|
||||
UC_X86_REG_FP2,
|
||||
UC_X86_REG_FP3,
|
||||
|
||||
Reference in New Issue
Block a user