Skip to content
Commit 48d68a78 authored by Javier Almansa Sobrino's avatar Javier Almansa Sobrino
Browse files

fix(unittests): sysregs status might be inconsistent between runs



Current implementation of test_helpers_rmm_start() in the
test_helpers library performs an initialization of the RMM runtime
for the host build on the first call. Subsequent calls are just
ignored after the first initialization.

This can cause a number of problems due to the sysregs left in
an undetermined status. For instance, a test using the RMM
runtime will leave the sysreg in an inconsistent state and cause
problems for the next test one. Hence it is essential for the
next test to reset to a previous known state as part of
initialization. Any test  using the RMM runtime will need to
restore the sysregs status and callbacks before running any new test.

This patch adds support to save the sysreg state after RMM
initialization in test_helpers_rmm_start() and restores this
state for any subsequent call to test_helpers_rmm_start().

Signed-off-by: Javier Almansa Sobrino's avatarJavier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: Ifb705380f079308576e7f59b475be6984447f045
parent f450817e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment