[PATCH] lib: Allow compiling without FP support

Anup Patel Anup.Patel at wdc.com
Fri Jul 26 03:21:43 PDT 2019



> -----Original Message-----
> From: Bin Meng <bmeng.cn at gmail.com>
> Sent: Friday, July 26, 2019 2:55 PM
> To: Anup Patel <Anup.Patel at wdc.com>
> Cc: Atish Patra <Atish.Patra at wdc.com>; Alistair Francis
> <Alistair.Francis at wdc.com>; Damien Le Moal <Damien.LeMoal at wdc.com>;
> opensbi at lists.infradead.org
> Subject: Re: [PATCH] lib: Allow compiling without FP support
> 
> On Thu, Jul 25, 2019 at 1:05 PM Anup Patel <Anup.Patel at wdc.com> wrote:
> >
> > Currently, we mandate 'F' and 'D' extension in riscv_fp.h so that
> > misaligned load/store emulation has access to FP registers.
> >
> > The above is too restrictive and we should certainly allow compilation
> > for soft-FP toolchains and explicit PLATFORM_RISCV_ISA not having 'F'
> > and 'D' extensions.
> >
> > This patch extends riscv_fp.h and misaligned load/store emulation to
> > allow compiling OpenSBI without FP support.
> >
> > Signed-off-by: Anup Patel <anup.patel at wdc.com>
> > ---
> >  include/sbi/riscv_fp.h        |  6 ++----
> >  lib/sbi/sbi_hart.c            |  7 -------
> >  lib/sbi/sbi_misaligned_ldst.c | 16 ++++++++++++++--
> >  3 files changed, 16 insertions(+), 13 deletions(-)
> >
> 
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Applied this patch on riscv/opensbi repo

Regards,
Anup


More information about the opensbi mailing list