BR 2067837: remove double add of VEX instruction length

We added the length of VEX prefixes twice in calcsize(); this resulted
in the wrong symbol addresses when compiling without the optimizer.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2008-08-24 18:09:04 -07:00
parent 83b2e4f82c
commit 19f15a50f6

View File

@ -975,14 +975,12 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits,
case 0261:
case 0262:
case 0263:
length += 2;
ins->rex |= REX_V;
ins->drexdst = regval(opx);
ins->vex_m = *codes++;
ins->vex_wlp = *codes++;
break;
case 0270:
length += 2;
ins->rex |= REX_V;
ins->drexdst = 0;
ins->vex_m = *codes++;