mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
Provide RDVL helpers for SME and extend the main vector configuration tests to cover SME. Signed-off-by: Mark Brown <[email protected]> Reviewed-by: Shuah Khan <[email protected]> Acked-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
21 lines
251 B
ArmAsm
21 lines
251 B
ArmAsm
// SPDX-License-Identifier: GPL-2.0-only
|
|
// Copyright (C) 2021 ARM Limited.
|
|
|
|
#include "sme-inst.h"
|
|
|
|
.arch_extension sve
|
|
|
|
.globl rdvl_sve
|
|
rdvl_sve:
|
|
hint 34 // BTI C
|
|
rdvl x0, #1
|
|
ret
|
|
|
|
.globl rdvl_sme
|
|
rdvl_sme:
|
|
hint 34 // BTI C
|
|
|
|
rdsvl 0, 1
|
|
|
|
ret
|