David Cunado | ce88eee | 2017-10-20 11:30:57 +0100 | [diff] [blame] | 1 | /* |
Jayanth Dodderi Chidanand | d62c681 | 2023-03-07 10:43:19 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved. |
David Cunado | ce88eee | 2017-10-20 11:30:57 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 033b4bb | 2018-10-25 16:52:26 +0100 | [diff] [blame] | 7 | #ifndef SVE_H |
| 8 | #define SVE_H |
David Cunado | ce88eee | 2017-10-20 11:30:57 +0100 | [diff] [blame] | 9 | |
Max Shvetsov | c450277 | 2021-03-22 11:59:37 +0000 | [diff] [blame] | 10 | #include <context.h> |
Antonio Nino Diaz | 033b4bb | 2018-10-25 16:52:26 +0100 | [diff] [blame] | 11 | |
Jayanth Dodderi Chidanand | d62c681 | 2023-03-07 10:43:19 +0000 | [diff] [blame] | 12 | #if (ENABLE_SME_FOR_NS || ENABLE_SVE_FOR_NS) |
Max Shvetsov | c450277 | 2021-03-22 11:59:37 +0000 | [diff] [blame] | 13 | void sve_enable(cpu_context_t *context); |
johpow01 | 9baade3 | 2021-07-08 14:14:00 -0500 | [diff] [blame] | 14 | void sve_disable(cpu_context_t *context); |
Jayanth Dodderi Chidanand | d62c681 | 2023-03-07 10:43:19 +0000 | [diff] [blame] | 15 | #else |
| 16 | static inline void sve_enable(cpu_context_t *context) |
| 17 | { |
| 18 | } |
| 19 | static inline void sve_disable(cpu_context_t *context) |
| 20 | { |
| 21 | } |
| 22 | #endif /* ( ENABLE_SME_FOR_NS | ENABLE_SVE_FOR_NS ) */ |
David Cunado | ce88eee | 2017-10-20 11:30:57 +0100 | [diff] [blame] | 23 | |
Antonio Nino Diaz | 033b4bb | 2018-10-25 16:52:26 +0100 | [diff] [blame] | 24 | #endif /* SVE_H */ |