]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(context-mgmt): move FEAT_HCX save/restore into C
authorAndre Przywara <andre.przywara@arm.com>
Tue, 15 Nov 2022 11:45:19 +0000 (11:45 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 11 Jan 2023 16:02:58 +0000 (16:02 +0000)
commitc5a3ebbd3a55eee2b29e1b887fd111b3b40487c4
tree13870dc94b8a27356179ac4eb24b06bdd20692c4
parentd242128c1dc87f2c0e25e2c4e84c5668a6c397a3
refactor(context-mgmt): move FEAT_HCX save/restore into C

At the moment we save and restore the HCRX_EL2 register in assembly, and
just depend on the build time flags.
To allow runtime checking, and to avoid too much code in assembly, move
that over to C, and use the new combined build/runtime feature check.

This also allows to drop the assert, since this should now be covered by
the different FEAT_STATE_x options.

Change-Id: I3e20b9ba17121d423cd08edc20bbf4e7ae7c0178
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
bl31/bl31_main.c
include/lib/el3_runtime/aarch64/context.h
lib/el3_runtime/aarch64/context.S
lib/el3_runtime/aarch64/context_mgmt.c