u-boot/arch
Nikita Shubin 81b56a55c2 riscv: cpu: check U-Mode before counteren write
The Priv ISA states:
"In systems without U-mode, the mcounteren register should
not exist."

Check U-Mode is present in MISA before writing to counteren, otherwise
we endup with Illegal Instruction exception on systems without U-Mode.

Also make checking MISA default for M-Mode.

Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-02-01 16:17:13 +08:00
..
arc arc: Migrate ARC_MMU_VER to Kconfig 2023-01-20 12:27:06 -05:00
arm - jethub j100: add rescue boot from microSD 2023-01-31 10:15:39 -05:00
m68k global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
microblaze microblaze: spl: drop boot_linux 2023-01-27 08:38:34 +01:00
mips global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
nios2 Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig 2022-12-22 10:31:48 -05:00
powerpc global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
riscv riscv: cpu: check U-Mode before counteren write 2023-02-01 16:17:13 +08:00
sandbox test: Add test for mapping IOMMUs for PCI devices 2023-01-27 14:47:58 -05:00
sh global: Migrate CONFIG_BOARDDIR to CFG 2022-12-23 10:07:03 -05:00
x86 global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
xtensa global: Migrate CONFIG_MAX_MEM_MAPPED to CFG 2022-12-23 10:14:51 -05:00
.gitignore
Kconfig event: Correct dependencies on the EVENT framework 2023-01-18 12:46:13 -05:00
Kconfig.nxp nxp: Finish migration of SYS_FSL_SRDS_[12] to Kconfig 2023-01-20 12:27:23 -05:00
u-boot-elf.lds