Skip to content
Snippets Groups Projects
Commit 01262f75 authored by Leon Weiss's avatar Leon Weiss
Browse files

Handle index register of a memory operation being the pseudo-register RIZ/EIZ

This should not adversely affect the rest of the logic as it is only ever entered in cases in which we would have asserted false before

Enables us to instrument x509
parent 995ed420
No related branches found
No related tags found
1 merge request!47Improve jump table detection and debugging output
...@@ -176,6 +176,9 @@ static uint32_t to_reg_number(const x86_reg &reg) ...@@ -176,6 +176,9 @@ static uint32_t to_reg_number(const x86_reg &reg)
case X86_REG_R15D: case X86_REG_R15D:
case X86_REG_R15W: case X86_REG_R15W:
return 15; return 15;
case X86_REG_RIZ:
case X86_REG_EIZ:
return -1; // STARS_x86_R_none, RIZ/EIZ is a pseudo-register having constant value of 0
default: break; default: break;
} }
assert(0); assert(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment