Skip to content
Snippets Groups Projects
Commit 652c34cb authored by guoguangyao's avatar guoguangyao Committed by Michael Tokarev
Browse files

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: b5e0d5d2 ("target/i386: Fix 32-bit wrapping of pc/eip computation")
Signed-off-by: default avatarguoguangyao <guoguangyao18@mails.ucas.ac.cn>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-ID: <20240115020804.30272-1-guoguangyao18@mails.ucas.ac.cn>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 2926eab8969908bc068629e973062a0fb6ff3759)
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 6e8e580e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment