target/i386: fix incorrect EIP in PC-relative translation blocks
commit2926eab8969908bc068629e973062a0fb6ff3759
authorguoguangyao <guoguangyao18@mails.ucas.ac.cn>
Mon, 15 Jan 2024 02:08:04 +0000 (15 10:08 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jan 2024 09:43:14 +0000 (18 10:43 +0100)
tree6e69772541c3dc12539805c8838d6e932469b2dc
parenta58506b748b8988a95f4fa1a2420ac5c17038b30
target/i386: fix incorrect EIP in PC-relative translation blocks

The PCREL patches introduced a bug when updating EIP in the !CF_PCREL case.
Using s->pc in func gen_update_eip_next() solves the problem.

Cc: qemu-stable@nongnu.org
Fixes: b5e0d5d22fbf ("target/i386: Fix 32-bit wrapping of pc/eip computation")
Signed-off-by: guoguangyao <guoguangyao18@mails.ucas.ac.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240115020804.30272-1-guoguangyao18@mails.ucas.ac.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c