target-i386: fix 32-bit addresses in LEA
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Oct 2016 07:23:39 +0000 (09:23 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Oct 2016 13:27:19 +0000 (15:27 +0200)
commit620abfb004543404bef1953e25da2ad77352941a
tree1268f6527bb2357d6011ba215d804311851d3e81
parent03514ac25c40ec3f2ffc493f1862ddd1353419f8
target-i386: fix 32-bit addresses in LEA

This was found with test-i386.  The issue is that instructions
such as

    addr32 lea (%eax), %rax

did not perform a 32-bit extension, because the LEA translation
skipped the gen_lea_v_seg step.  That step does not just add
segments, it also takes care of extending from address size to
pointer size.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/translate.c