[PATCH] lib: Allow compiling without FP support

Bin Meng bmeng.cn at gmail.com
Fri Jul 26 02:25:16 PDT 2019


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>



More information about the opensbi mailing list