Fix code that computes displacement size.
--HG-- extra : convert_revision : a9be3eb2b90b88086936aeb4dcf87ec7b58a48cb
This commit is contained in:
@@ -305,8 +305,7 @@ namespace X86ISA
|
||||
displacementSize = 0;
|
||||
} else {
|
||||
//figure out 32/64 bit displacement size
|
||||
if(modRM.mod == 0 && (modRM.rm == 4 || modRM.rm == 5)
|
||||
|| modRM.mod == 2)
|
||||
if(modRM.mod == 0 && modRM.rm == 5 || modRM.mod == 2)
|
||||
displacementSize = 4;
|
||||
else if(modRM.mod == 1)
|
||||
displacementSize = 1;
|
||||
|
||||
Reference in New Issue
Block a user