mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
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>
This commit is contained in:
committed by
Laurent Vivier
parent
9bdfa4d23f
commit
8f67b9c694
@@ -21,7 +21,7 @@
|
||||
|
||||
/* We need to be able to map the commpage.
|
||||
See validate_guest_space in linux-user/elfload.c. */
|
||||
#define MAX_RESERVED_VA 0xffff0000ul
|
||||
#define MAX_RESERVED_VA(CPU) 0xffff0000ul
|
||||
|
||||
static inline void cpu_clone_regs(CPUARMState *env, target_ulong newsp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user