OSDN Git Service

exec: Fix overlap of PAGE_ANON and PAGE_TARGET_1
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Apr 2021 17:40:31 +0000 (10:40 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 12 Apr 2021 10:06:24 +0000 (11:06 +0100)
commit52c01ada86611136e3122dd139788dbcbc292d86
treee71dfe808a700301c357fd86c4218bcabebba1a4
parentff38bca7d633868ac094ef86f3b246e8f57181d4
exec: Fix overlap of PAGE_ANON and PAGE_TARGET_1

Unfortuately, the elements of PAGE_* were not in numerical
order and so PAGE_ANON was added to an "unused" bit.
As an arbitrary choice, move PAGE_TARGET_{1,2} together.

Cc: Laurent Vivier <laurent@vivier.eu>
Fixes: 26bab757d41b ("linux-user: Introduce PAGE_ANON")
Buglink: https://bugs.launchpad.net/bugs/1922617
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Tested-by: Laurent Vivier <laurent@vivier.eu>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/exec/cpu-all.h