[PATCH 16/20] RISC-V: add 64-bit support

Rouven Czerwinski rcz at pengutronix.de
Sun Mar 14 12:51:00 GMT 2021


Hi Ahmad,

On Sun, 2021-03-14 at 13:28 +0100, Ahmad Fatoum wrote:
> From: Rouven Czerwinski <r.czerwinski at pengutronix.de>
> […]
>  ifeq ($(CONFIG_ARCH_RV32I),y)
> -	riscv-cflags-y := -march=rv32im -mabi=ilp32
> -	riscv-ldflags-y := -melf32lriscv
> +	riscv-cflags-y += -march=rv32im -mabi=ilp32
> +	riscv-ldflags-y += -melf32lriscv
> +else
> +	riscv-cflags-y += -march=rv64imafd  -mabi=lp64

This should also work with -march=rv64im, we are not using atomics or
floating ops anywhere and should not require this until needed.

> +	riscv-ldflags-y += -melf64lriscv
>  endif
> 

Regards,
Rouven




More information about the barebox mailing list