mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

Introduce a function to disable SPE feature for Non-secure state and do the default setting of making Secure state the owner of profiling buffers and trap access of profiling and profiling buffer control registers from lower ELs to EL3. This functionality is required to handle asymmetric cores where SPE has to disabled at runtime. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: I2f99e922e8df06bfc900c153137aef7c9dcfd759
33 lines
606 B
C
33 lines
606 B
C
/*
|
|
* Copyright (c) 2017-2024, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef SPE_H
|
|
#define SPE_H
|
|
|
|
#include <stdbool.h>
|
|
#include <context.h>
|
|
|
|
#if ENABLE_SPE_FOR_NS
|
|
void spe_enable(cpu_context_t *ctx);
|
|
void spe_disable(cpu_context_t *ctx);
|
|
void spe_init_el2_unused(void);
|
|
void spe_stop(void);
|
|
#else
|
|
static inline void spe_enable(cpu_context_t *ctx)
|
|
{
|
|
}
|
|
static inline void spe_disable(cpu_context_t *ctx)
|
|
{
|
|
}
|
|
static inline void spe_init_el2_unused(void)
|
|
{
|
|
}
|
|
static inline void spe_stop(void)
|
|
{
|
|
}
|
|
#endif /* ENABLE_SPE_FOR_NS */
|
|
|
|
#endif /* SPE_H */
|