diff options
author | Manish Pandey <manish.pandey2@arm.com> | 2023-03-27 13:08:26 +0200 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2023-03-27 13:08:26 +0200 |
commit | 82f5b5098b7674f5b8c6b1e3cd24902b6a508f5a (patch) | |
tree | b036d6ce18bcaf86e62513aec00c265dae17b910 /include/lib | |
parent | e8d5a30184ade55d6ead07c21fbb3cd29444e439 (diff) | |
parent | ac17e52c728e7786e80f41e41673420433637fa6 (diff) | |
download | arm-trusted-firmware-82f5b5098b7674f5b8c6b1e3cd24902b6a508f5a.tar.gz |
Merge changes from topic "feat_state_part4" into integration
* changes:
refactor(cpufeat): enable FEAT_RNG for FEAT_STATE_CHECKED
refactor(cpufeat): align FEAT_SEL2 to new feature handling
refactor(cpufeat): enable FEAT_NV2 for FEAT_STATE_CHECKED
refactor(cpufeat): enable FEAT_TWED for FEAT_STATE_CHECKED
refactor(cpufeat): enable FEAT_CSV2_2 for FEAT_STATE_CHECKED
refactor(cpufeat): enable FEAT_ECV for FEAT_STATE_CHECKED
refactor(cpufeat): enable FEAT_PAN for FEAT_STATE_CHECKED
refactor(cpufeat): align FEAT_SB to new feature handling
refactor(cpufeat): use alternative encoding for "SB" barrier
refactor(cpufeat): enable SYS_REG_TRACE for FEAT_STATE_CHECKED
fix(cpufeat): make stub enable functions "static inline"
fix(mpam): feat_detect: support major/minor
Diffstat (limited to 'include/lib')
-rw-r--r-- | include/lib/el3_runtime/aarch64/context.h | 12 | ||||
-rw-r--r-- | include/lib/extensions/brbe.h | 2 | ||||
-rw-r--r-- | include/lib/extensions/mpam.h | 2 | ||||
-rw-r--r-- | include/lib/extensions/spe.h | 4 | ||||
-rw-r--r-- | include/lib/extensions/sys_reg_trace.h | 14 | ||||
-rw-r--r-- | include/lib/extensions/trbe.h | 2 | ||||
-rw-r--r-- | include/lib/extensions/trf.h | 2 |
7 files changed, 20 insertions, 18 deletions
diff --git a/include/lib/el3_runtime/aarch64/context.h b/include/lib/el3_runtime/aarch64/context.h index 9b50f3319..e5e7e7422 100644 --- a/include/lib/el3_runtime/aarch64/context.h +++ b/include/lib/el3_runtime/aarch64/context.h @@ -517,22 +517,10 @@ void el2_sysregs_context_restore_common(el2_sysregs_t *regs); void el2_sysregs_context_save_mte(el2_sysregs_t *regs); void el2_sysregs_context_restore_mte(el2_sysregs_t *regs); #endif /* CTX_INCLUDE_MTE_REGS */ -#if ENABLE_FEAT_ECV -void el2_sysregs_context_save_ecv(el2_sysregs_t *regs); -void el2_sysregs_context_restore_ecv(el2_sysregs_t *regs); -#endif /* ENABLE_FEAT_ECV */ #if RAS_EXTENSION void el2_sysregs_context_save_ras(el2_sysregs_t *regs); void el2_sysregs_context_restore_ras(el2_sysregs_t *regs); #endif /* RAS_EXTENSION */ -#if CTX_INCLUDE_NEVE_REGS -void el2_sysregs_context_save_nv2(el2_sysregs_t *regs); -void el2_sysregs_context_restore_nv2(el2_sysregs_t *regs); -#endif /* CTX_INCLUDE_NEVE_REGS */ -#if ENABLE_FEAT_CSV2_2 -void el2_sysregs_context_save_csv2(el2_sysregs_t *regs); -void el2_sysregs_context_restore_csv2(el2_sysregs_t *regs); -#endif /* ENABLE_FEAT_CSV2_2 */ #endif /* CTX_INCLUDE_EL2_REGS */ #if CTX_INCLUDE_FPREGS diff --git a/include/lib/extensions/brbe.h b/include/lib/extensions/brbe.h index aee208d04..9ee2444f6 100644 --- a/include/lib/extensions/brbe.h +++ b/include/lib/extensions/brbe.h @@ -10,7 +10,7 @@ #if ENABLE_BRBE_FOR_NS void brbe_enable(void); #else -void brbe_enable(void) +static inline void brbe_enable(void) { } #endif /* ENABLE_BRBE_FOR_NS */ diff --git a/include/lib/extensions/mpam.h b/include/lib/extensions/mpam.h index 120a921d1..4327278e0 100644 --- a/include/lib/extensions/mpam.h +++ b/include/lib/extensions/mpam.h @@ -12,7 +12,7 @@ #if ENABLE_MPAM_FOR_LOWER_ELS void mpam_enable(bool el2_unused); #else -void mpam_enable(bool el2_unused) +static inline void mpam_enable(bool el2_unused) { } #endif diff --git a/include/lib/extensions/spe.h b/include/lib/extensions/spe.h index d443f18fb..02fccae92 100644 --- a/include/lib/extensions/spe.h +++ b/include/lib/extensions/spe.h @@ -13,10 +13,10 @@ void spe_enable(bool el2_unused); void spe_disable(void); #else -void spe_enable(bool el2_unused) +static inline void spe_enable(bool el2_unused) { } -void spe_disable(void) +static inline void spe_disable(void) { } #endif diff --git a/include/lib/extensions/sys_reg_trace.h b/include/lib/extensions/sys_reg_trace.h index 74470fee2..5915c5547 100644 --- a/include/lib/extensions/sys_reg_trace.h +++ b/include/lib/extensions/sys_reg_trace.h @@ -9,10 +9,24 @@ #include <context.h> +#if ENABLE_SYS_REG_TRACE_FOR_NS #if __aarch64__ void sys_reg_trace_enable(cpu_context_t *context); #else void sys_reg_trace_enable(void); #endif /* __aarch64__ */ +#else /* !ENABLE_SYS_REG_TRACE_FOR_NS */ + +#if __aarch64__ +static inline void sys_reg_trace_enable(cpu_context_t *context) +{ +} +#else +static inline void sys_reg_trace_enable(void) +{ +} +#endif /* __aarch64__ */ +#endif /* ENABLE_SYS_REG_TRACE_FOR_NS */ + #endif /* SYS_REG_TRACE_H */ diff --git a/include/lib/extensions/trbe.h b/include/lib/extensions/trbe.h index 0eff7c4ee..861a4ad65 100644 --- a/include/lib/extensions/trbe.h +++ b/include/lib/extensions/trbe.h @@ -10,7 +10,7 @@ #if ENABLE_TRBE_FOR_NS void trbe_enable(void); #else -void trbe_enable(void) +static inline void trbe_enable(void) { } #endif /* ENABLE_TRBE_FOR_NS */ diff --git a/include/lib/extensions/trf.h b/include/lib/extensions/trf.h index a440abd4b..91a96153c 100644 --- a/include/lib/extensions/trf.h +++ b/include/lib/extensions/trf.h @@ -10,7 +10,7 @@ #if ENABLE_TRF_FOR_NS void trf_enable(void); #else -void trf_enable(void) +static inline void trf_enable(void) { } #endif /* ENABLE_TRF_FOR_NS */ |