On 20.08.20 12:07, [email protected] wrote:
> From: Peng Fan <[email protected]>
> 
> Some compilers default use hardfloat to generate instructions,
> so it will use some FPU/NEON registers to do some optimization.
> 
> However some inmates might use FPU/NEON registers do some
> calculation such as vector/audio and etc. So we need to disable
> jailhouse use these registers. Use `-march=armv8-a+nofp` for this.
> 
> Reported-by: Michal Hanak <[email protected]>
> Signed-off-by: Peng Fan <[email protected]>
> ---
>  hypervisor/arch/arm64/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/hypervisor/arch/arm64/Makefile b/hypervisor/arch/arm64/Makefile
> index 1eb961d2..0718994d 100644
> --- a/hypervisor/arch/arm64/Makefile
> +++ b/hypervisor/arch/arm64/Makefile
> @@ -11,3 +11,5 @@
>  #
>  
>  LINUXINCLUDE += -I$(src)/arch/arm-common/include
> +
> +KBUILD_CFLAGS += -march=armv8-a+nofp
> 

I suppose the subject should read "Do not use FPU..." :)

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/72a4c105-18c1-6f82-468a-370fae6e7f72%40siemens.com.

Reply via email to