mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
Add support for MIPS vendor extensions. Add support for the xmipsexectl vendor extension. Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20250724-p8700-pause-v5-2-a6cbbe1c3412@htecgroup.com [pjw@kernel.org: added the MIPS vendor ID from another patch to fix the build] Signed-off-by: Paul Walmsley <pjw@kernel.org>
23 lines
635 B
C
23 lines
635 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2025 MIPS.
|
|
*/
|
|
|
|
#include <asm/cpufeature.h>
|
|
#include <asm/vendor_extensions.h>
|
|
#include <asm/vendor_extensions/mips.h>
|
|
|
|
#include <linux/array_size.h>
|
|
#include <linux/cpumask.h>
|
|
#include <linux/types.h>
|
|
|
|
/* All MIPS vendor extensions supported in Linux */
|
|
static const struct riscv_isa_ext_data riscv_isa_vendor_ext_mips[] = {
|
|
__RISCV_ISA_EXT_DATA(xmipsexectl, RISCV_ISA_VENDOR_EXT_XMIPSEXECTL),
|
|
};
|
|
|
|
struct riscv_isa_vendor_ext_data_list riscv_isa_vendor_ext_list_mips = {
|
|
.ext_data_count = ARRAY_SIZE(riscv_isa_vendor_ext_mips),
|
|
.ext_data = riscv_isa_vendor_ext_mips,
|
|
};
|