Crash under sparc/rtems-4.11 when compiling with FPU

Jiri Gaisler jiri at
Sun Feb 7 09:59:18 UTC 2016

On 07/02/16 07:41, Sebastian Huber wrote:
> Hello Athanasios,
> it was always a miracle to me how you are supposed to use the leon2/leon3 BSPs with a FPU. If you want to use the FPU, then the BSP must be built with the -mhard-float option, otherwise the FPU support is not enabled in the operating system support. In addition the application configuration must be compiled with exactly the same compiler flags as the BSP, otherwise it will generate a corrupt configuration.
> I think we need leon2fp and leon3fp BSPs, which use -mhard-float.

Isn't -mhard-float the default setting in gcc? -msoft-float is used to
force software emulation of the FPU, otherwise FPU instructions are
issued by default.


More information about the users mailing list