From d242128c1dc87f2c0e25e2c4e84c5668a6c397a3 Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Tue, 15 Nov 2022 11:45:19 +0000 Subject: refactor(cpufeat): convert FEAT_HCX to new scheme Use the generic check function in feat_detect.c, and split the feature check into two functions, as done for FEAT_FGT before. Signed-off-by: Andre Przywara Change-Id: I0a4f973427c10d5d15c414ff5e12b18b7e645fae --- bl31/bl31_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bl31') diff --git a/bl31/bl31_main.c b/bl31/bl31_main.c index 2a3d838e4..a4640b1b9 100644 --- a/bl31/bl31_main.c +++ b/bl31/bl31_main.c @@ -99,7 +99,7 @@ void bl31_setup(u_register_t arg0, u_register_t arg1, u_register_t arg2, * an exception would occur during context save/restore if enabled but * not supported. */ - assert(is_feat_hcx_present()); + assert(is_feat_hcx_supported()); #endif /* ENABLE_FEAT_HCX */ #if CTX_INCLUDE_PAUTH_REGS -- cgit v1.2.1