freebsd-skq/sys/riscv
Kristof Provost 6ebb17dfa7 riscv: Set MACHINE_ARCH correctly
MACHINE_ARCH sets the hw.machine_arch sysctl in the kernel. In userspace
it sets MACHINE_ARCH in bmake, which bsd.cpu.mk uses to configure the
target ABI for ports.

For riscv64sf builds (i.e. soft-float) that needs to be riscv64sf, but
the sysctl didn't reflect that. It is static.

Set the define from the riscv makefile so that we correctly reflect our
actual build (i.e. riscv64 or riscv64sf), depending on what TARGET_ARCH
we were built with.

That still doesn't satisfy userspace builds (e.g. bmake), so check if
we're building with a software-floating point toolchain there. That
check doesn't work in the kernel, because it never uses floating point.

Reviewed by:	philip (previous version), mhorne
Sponsored by:	Axiado
Differential Revision:	https://reviews.freebsd.org/D23741
2020-02-22 13:23:27 +00:00
..
conf Include the PCI stack to the riscv GENERIC kernel. 2020-01-24 17:10:21 +00:00
include riscv: Set MACHINE_ARCH correctly 2020-02-22 13:23:27 +00:00
riscv Implement vm.pmap.kernel_maps for RISC-V 2020-02-12 14:06:02 +00:00
sifive prci: register tlclk as a fixed clock 2020-02-01 17:13:52 +00:00