When issuing warnings for EA displacements, use the *EA* operand

When issuing warnings for EA displacements during address generation,
actually look a the proper operand!

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2008-10-23 20:49:09 -07:00
parent 584f7a8f57
commit b21141a301

View File

@ -1808,7 +1808,7 @@ static void gencode(int32_t segment, int64_t offset, int bits,
case 2:
case 4:
data = ins->oprs[(c >> 3) & 7].offset;
warn_overflow(ea_data.bytes, opx);
warn_overflow(ea_data.bytes, &ins->oprs[(c >> 3) & 7]);
s += ea_data.bytes;
if (ea_data.rip) {
if (ins->oprs[(c >> 3) & 7].segment == segment) {