diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-01-02 10:06:17 +1100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-20 12:20:44 +0300 |
commit | 6e8e580e3947eb77d1757a6ea59c58bd311bcb7e (patch) | |
tree | 00a100c4f367a74a09992632aba2b7230ef683fd /hw/ipmi | |
parent | 72dd722370864fbd4bedb218a8df6b71867c47e1 (diff) | |
download | qemu-6e8e580e3947eb77d1757a6ea59c58bd311bcb7e.zip qemu-6e8e580e3947eb77d1757a6ea59c58bd311bcb7e.tar.gz qemu-6e8e580e3947eb77d1757a6ea59c58bd311bcb7e.tar.bz2 |
target/i386: Do not re-compute new pc with CF_PCREL
With PCREL, we have a page-relative view of EIP, and an
approximation of PC = EIP+CSBASE that is good enough to
detect page crossings. If we try to recompute PC after
masking EIP, we will mess up that approximation and write
a corrupt value to EIP.
We already handled masking properly for PCREL, so the
fix in b5e0d5d2 was only needed for the !PCREL path.
Cc: qemu-stable@nongnu.org
Fixes: b5e0d5d22fbf ("target/i386: Fix 32-bit wrapping of pc/eip computation")
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240101230617.129349-1-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit a58506b748b8988a95f4fa1a2420ac5c17038b30)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/ipmi')
0 files changed, 0 insertions, 0 deletions