mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00
Merge "feat(sme): fall back to SVE if SME is not there" into integration
This commit is contained in:
commit
e45ffa18d3
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -37,6 +37,8 @@ void sme_enable(cpu_context_t *context)
|
|||
|
||||
/* Make sure SME is implemented in hardware before continuing. */
|
||||
if (!feat_sme_supported()) {
|
||||
/* Perhaps the hardware supports SVE only */
|
||||
sve_enable(context);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -83,6 +85,8 @@ void sme_disable(cpu_context_t *context)
|
|||
|
||||
/* Make sure SME is implemented in hardware before continuing. */
|
||||
if (!feat_sme_supported()) {
|
||||
/* Perhaps the hardware supports SVE only */
|
||||
sve_disable(context);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue