1menu "Sandbox architecture"
2	depends on SANDBOX
3
4config ARCH_MAP_SYSMEM
5	def_bool y
6
7config SYS_ARCH
8	default "sandbox"
9
10config SYS_BOARD
11	default "sandbox"
12
13config SYS_CPU
14	default "sandbox"
15
16config SANDBOX64
17	bool "Use 64-bit addresses"
18	select PHYS_64BIT
19	select HOST_64BIT
20
21config SANDBOX_RAM_SIZE_MB
22	int "RAM size in MiB"
23	default 128
24	range 64 4095 if !SANDBOX64
25	range 64 268435456 if SANDBOX64
26	help
27	  Memory size of the sandbox in MiB. The default value is 128 MiB.
28	  The minimum value is 64 MiB. The maximum value is 4095 MiB for the
29	  32bit sandbox.
30
31config SANDBOX_SPL
32	bool "Enable SPL for sandbox"
33	select SUPPORT_SPL
34
35config SYS_CONFIG_NAME
36	default "sandbox_spl" if SANDBOX_SPL
37	default "sandbox" if !SANDBOX_SPL
38
39choice
40	prompt "Run sandbox on 32/64-bit host"
41	default HOST_64BIT
42	help
43	  Sandbox can be built on 32-bit and 64-bit hosts.
44	  The default is to build on a 64-bit host and run
45	  on a 64-bit host. If you want to run sandbox on
46	  a 32-bit host, change it here.
47
48config HOST_32BIT
49	bool "32-bit host"
50	depends on !PHYS_64BIT
51
52config HOST_64BIT
53	bool "64-bit host"
54
55endchoice
56
57config SANDBOX_CRASH_RESET
58	bool "Reset on crash"
59	help
60	  If an illegal instruction or an illegal memory access occurs, the
61	  sandbox by default writes a crash dump and exits. If you set this
62	  flag, the sandbox is reset instead. This may be useful when running
63	  test suites like the UEFI self certification test which continue
64	  with the next test after a crash.
65
66config SANDBOX_BITS_PER_LONG
67	int
68	default 32 if HOST_32BIT
69	default 64 if HOST_64BIT
70
71endmenu
72