]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/main.c
linux-user: Pass CPUState to MAX_RESERVED_VA
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 22 Aug 2019 18:59:28 +0000 (11:59 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 11 Sep 2019 06:46:34 +0000 (08:46 +0200)
commit8f67b9c694d01e3468e73d632324cd52a129a38b
treed21d32e3c95f0a7096a7c9dfe9706e86dee322f2
parent9bdfa4d23f4395dab89a60eb6b05a0308792bd66
linux-user: Pass CPUState to MAX_RESERVED_VA

Turn the scalar macro into a functional macro.  Move the creation
of the cpu up a bit within main() so that we can pass it to the
invocation of MAX_RESERVED_VA.  Delay the validation of the -R
parameter until MAX_RESERVED_VA is computed.

So far no changes to any of the MAX_RESERVED_VA macros to actually
use the cpu in any way, but ARM will need it.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20190822185929.16891-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/arm/target_cpu.h
linux-user/main.c