]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Hoist first page lookup above pointer_wrap
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 4 Oct 2025 19:10:52 +0000 (12:10 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 15 Oct 2025 04:42:34 +0000 (07:42 +0300)
commite14614fe78bca37e8bdfa472ccf9b8aa49ec6e9e
tree5331cf4fc999696af6785e515fea4e91419dead5
parent95c1555cd8c92a97db1f1fe352abcf55f0169830
accel/tcg: Hoist first page lookup above pointer_wrap

For strict alignment targets we registered cpu_pointer_wrap_notreached,
but generic code used it before recognizing the alignment exception.
Hoist the first page lookup, so that the alignment exception happens first.

Cc: qemu-stable@nongnu.org
Buglink: https://bugs.debian.org/1112285
Fixes: a4027ed7d4be ("target: Use cpu_pointer_wrap_notreached for strict align targets")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit ec03dd9723781c7e9d4b4f70c7f54d12da9459d5)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
accel/tcg/cputlb.c