sandbox: make RAM size configurable
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Jun 2020 16:47:35 +0000 (18:47 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:57:22 +0000 (18:57 -0600)
commite85497a930b21cc5b2c5ac220c9ed1668341d30c
treea682bb146809d58e0fb4cb3e02939caeb8d848ac
parent1b48782ad3f8614a2766550baf8e7707d63deae7
sandbox: make RAM size configurable

Up to now the RAM size of the sandbox is hard coded as 128 MiB. This does
not allow testing the correct handling of addresses outside the 32bit
range. 128 MiB is also rather small when tracing functions where the trace
is written to RAM.

Provide configuration variable CONFIG_SANDBOX_RAM_SIZE_MB to set the RAM
size in MiB. It defaults to 128 MiB with a minimum of 64 MiB.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/Kconfig
arch/sandbox/include/asm/state.h
include/configs/sandbox.h