OSDN Git Service

RISC-V: recognize S/U mode bits in print_isa
authorPatrick Stählin <me@packi.ch>
Fri, 9 Nov 2018 21:42:16 +0000 (22:42 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 20 Nov 2018 13:19:28 +0000 (05:19 -0800)
commit5d8f81ba1da55210123b9595e87b913c79579d02
treeab18ae8ecb86c0df3a2419132b3afb7ee393f0b9
parent27f8899d6002e11a6e2d995e29b8deab5aa9cc25
RISC-V: recognize S/U mode bits in print_isa

Removes the warning about an unsupported ISA when reading /proc/cpuinfo
on QEMU. The "S" extension is not being returned as it is not accessible
from userspace.

Signed-off-by: Patrick Stählin <me@packi.ch>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/cpu.c