cpu-probe.c (616500232e632dba8b03981eeccadacf2fbf1c30) cpu-probe.c (01158487af60cd3915e8c31924144caf29cb0767)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Processor capabilities determination functions.
4 *
5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
6 */
7#include <linux/init.h>
8#include <linux/kernel.h>

--- 122 unchanged lines hidden (view full) ---

131 if (config & CPUCFG2_COMPLEX) {
132 c->options |= LOONGARCH_CPU_COMPLEX;
133 elf_hwcap |= HWCAP_LOONGARCH_COMPLEX;
134 }
135 if (config & CPUCFG2_CRYPTO) {
136 c->options |= LOONGARCH_CPU_CRYPTO;
137 elf_hwcap |= HWCAP_LOONGARCH_CRYPTO;
138 }
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Processor capabilities determination functions.
4 *
5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
6 */
7#include <linux/init.h>
8#include <linux/kernel.h>

--- 122 unchanged lines hidden (view full) ---

131 if (config & CPUCFG2_COMPLEX) {
132 c->options |= LOONGARCH_CPU_COMPLEX;
133 elf_hwcap |= HWCAP_LOONGARCH_COMPLEX;
134 }
135 if (config & CPUCFG2_CRYPTO) {
136 c->options |= LOONGARCH_CPU_CRYPTO;
137 elf_hwcap |= HWCAP_LOONGARCH_CRYPTO;
138 }
139 if (config & CPUCFG2_PTW) {
140 c->options |= LOONGARCH_CPU_PTW;
141 elf_hwcap |= HWCAP_LOONGARCH_PTW;
142 }
139 if (config & CPUCFG2_LVZP) {
140 c->options |= LOONGARCH_CPU_LVZ;
141 elf_hwcap |= HWCAP_LOONGARCH_LVZ;
142 }
143
144 config = read_cpucfg(LOONGARCH_CPUCFG6);
145 if (config & CPUCFG6_PMP)
146 c->options |= LOONGARCH_CPU_PMP;

--- 165 unchanged lines hidden ---
143 if (config & CPUCFG2_LVZP) {
144 c->options |= LOONGARCH_CPU_LVZ;
145 elf_hwcap |= HWCAP_LOONGARCH_LVZ;
146 }
147
148 config = read_cpucfg(LOONGARCH_CPUCFG6);
149 if (config & CPUCFG6_PMP)
150 c->options |= LOONGARCH_CPU_PMP;

--- 165 unchanged lines hidden ---