forked from Imagelibrary/seL4
mcs: allow kernel WCET estimate to be scaled
This configuration option allows for building images destined for simulators, which may not simulate as fast as hardware, to still be used.
This commit is contained in:
committed by
Kent Mcleod
parent
2329cd81dc
commit
4768465027
12
config.cmake
12
config.cmake
@@ -442,4 +442,16 @@ config_option(
|
||||
# of the currently running thread without a capability.
|
||||
config_set(KernelSetTLSBaseSelf SET_TLS_BASE_SELF ${KernelSetTLSBaseSelf})
|
||||
|
||||
config_string(
|
||||
KernelWcetScale KERNEL_WCET_SCALE
|
||||
"Multiplier to scale kernel WCET estimate by: the kernel WCET estimate \
|
||||
is used to ensure a thread has enough budget to get in and out of the \
|
||||
kernel. When running in a simulator the WCET estimate, which is tuned \
|
||||
for hardware, may not be sufficient. This option provides a hacky knob \
|
||||
that can be fiddled with when running inside a simulator."
|
||||
DEFAULT 1
|
||||
UNQUOTE
|
||||
DEPENDS "KernelIsMCS" UNDEF_DISABLED
|
||||
)
|
||||
|
||||
add_config_library(kernel "${configure_string}")
|
||||
|
||||
Reference in New Issue
Block a user