target/i386: remove unnecessary truncations
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Oct 2023 18:38:16 +0000 (20:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Dec 2023 21:02:58 +0000 (22:02 +0100)
commit8cc746525cf7961dc4dbd144b678a1c036aa3647
tree3b6d7a756fe549e322cb28aa5d1e642c8f3a84ab
parent83280f6a621c6a1aca54cc751e713d9567a9f5b2
target/i386: remove unnecessary truncations

gen_lea_v_seg (called by gen_add_A0_ds_seg) already zeroes any
bits of s->A0 beyond s->aflag.  It does so before summing the
segment base and, if not in 64-bit mode, also after summing it.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/emit.c.inc
target/i386/tcg/translate.c