arch/riscv: set the default float ABI based on ISA extensions
authorMark Corbin <mark.corbin@embecosm.com>
Thu, 19 Sep 2019 15:40:35 +0000 (16:40 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 19 Sep 2019 19:43:53 +0000 (21:43 +0200)
commitaee39cbf27e833fad9962eb99b5655dbadcfee60
tree0022a622d74c0b65a123f96a8e86fd0a52fa0dbf
parent916497d7d5e2090d99317b0b3982fffa671a831c
arch/riscv: set the default float ABI based on ISA extensions

This patch sets the default floating point ABI based on the ISA
extensions that have been selected rather than defaulting to soft
float.

For 64-bit:

ISA 'D' selects  lp64d
ISA 'F' selects  lp64f
Otherwise select lp64

For 32-bit:

ISA 'D' selects  ilp32d
ISA 'F' selects  ilp32f
Otherwise select ilp32

This change was proposed by Palmer Dabbelt at SiFive.

Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
arch/Config.in.riscv