blob: 1faed2d23c080e96a9f2d5a177212ba990d99f88 [file] [log] [blame]
David Cunadoce88eee2017-10-20 11:30:57 +01001/*
Jayanth Dodderi Chidanandd62c6812023-03-07 10:43:19 +00002 * Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
David Cunadoce88eee2017-10-20 11:30:57 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +01007#ifndef SVE_H
8#define SVE_H
David Cunadoce88eee2017-10-20 11:30:57 +01009
Max Shvetsovc4502772021-03-22 11:59:37 +000010#include <context.h>
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +010011
Jayanth Dodderi Chidanandd62c6812023-03-07 10:43:19 +000012#if (ENABLE_SME_FOR_NS || ENABLE_SVE_FOR_NS)
Max Shvetsovc4502772021-03-22 11:59:37 +000013void sve_enable(cpu_context_t *context);
johpow019baade32021-07-08 14:14:00 -050014void sve_disable(cpu_context_t *context);
Jayanth Dodderi Chidanandd62c6812023-03-07 10:43:19 +000015#else
16static inline void sve_enable(cpu_context_t *context)
17{
18}
19static inline void sve_disable(cpu_context_t *context)
20{
21}
22#endif /* ( ENABLE_SME_FOR_NS | ENABLE_SVE_FOR_NS ) */
David Cunadoce88eee2017-10-20 11:30:57 +010023
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +010024#endif /* SVE_H */