tcg/i386: Generalize multi-part load overlap test
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 16 Apr 2023 13:56:41 +0000 (15:56 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 May 2023 16:10:59 +0000 (17:10 +0100)
commit3174941fe096abe903a1acdec8ed0603b3c23e12
treea97a6b501b846cfff608506a32b80fccbe15e52d
parentbf12e2240d81f887427b75ad2bba8a6040d36366
tcg/i386: Generalize multi-part load overlap test

Test for both base and index; use datahi as a temporary, overwritten
by the final load.  Always perform the loads in ascending order, so
that any (user-only) fault sees the correct address.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target.c.inc