mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Provide RDVL helpers for SME and extend the main vector configuration tests to cover SME. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20220419112247.711548-32-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
20 lines
251 B
ArmAsm
20 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
|