]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: fix incorrect EIP in PC-relative translation blocks
authorguoguangyao <guoguangyao18@mails.ucas.ac.cn>
Mon, 15 Jan 2024 02:08:04 +0000 (10:08 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 20 Jan 2024 09:24:19 +0000 (12:24 +0300)
commit57078586026b2ff8c052f909a120118058a7fd57
tree77cd9dc7003aac0222c3c1ae223fec159ee356b7
parent99e32260ac203040ea1f9c1c2930298ab1dee9cf
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")
Fixes: 5b2fd6cf3735 (b5e0d5d22fbf in 8.1.4)
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>
(cherry picked from commit 2926eab8969908bc068629e973062a0fb6ff3759)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/tcg/translate.c