x86: handle RIP relative addressing in 64bit mode properly. bug reported by @hlide

This commit is contained in:
Nguyen Anh Quynh 2014-06-30 02:01:04 +08:00
parent af6825a480
commit 656ebc9625
1 changed files with 1 additions and 0 deletions

View File

@ -1394,6 +1394,7 @@ static int readModRM(struct InternalInstruction* insn)
return -1;
break;
case 0x5:
case 0xd:
insn->eaBase = EA_BASE_NONE;
insn->eaDisplacement = EA_DISP_32;
if (readDisplacement(insn))