]> 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)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 14 Oct 2025 14:33:21 +0000 (07:33 -0700)
commitec03dd9723781c7e9d4b4f70c7f54d12da9459d5
tree33108bdb616641a18e2935766d595716922dddb2
parenta79fbb6988f6aad36a64ef9fd1a5fc226a8e4130
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>
accel/tcg/cputlb.c