RISC-V: Mask out the F extension on systems without D
authorPalmer Dabbelt <palmer@sifive.com>
Mon, 27 Aug 2018 21:42:53 +0000 (14:42 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:38:00 +0000 (17:38 -0700)
commit86e581e310785782e2025a076dc9a3f5138e5bf3
treefd97fa14f75e9defd4488733bef5aa5bb4d8481a
parent1760debb51f73ed3e089c8d4e847554901dee4bb
RISC-V: Mask out the F extension on systems without D

The RISC-V Linux port doesn't support systems that have the F extension
but don't have the D extension -- we actually don't support systems
without D either, but Alan's patch set is rectifying that soon.  For now
I think we can leave this in a semi-broken state and just wait for
Alan's patch set to get merged for proper non-FPU support -- the patch
set is starting to look good, so doing something in-between doesn't seem
like it's worth the work.

I don't think it's worth fretting about support for systems with F but
not D for now: our glibc ABIs are IMAC and IMAFDC so they probably won't
end up being popular.  We can always extend this in the future.

CC: Alan Kao <alankao@andestech.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/cpufeature.c