Skip to content
Snippets Groups Projects
Commit a0f8d270 authored by Daniil Kovalev's avatar Daniil Kovalev Committed by Laurent Vivier
Browse files

linux-user: Fix mips fp64 executables loading


If a program requires fr1, we should set the FR bit of CP0 control status
register and add F64 hardware flag. The corresponding `else if` branch
statement is copied from the linux kernel sources (see `arch_check_elf` function
in linux/arch/mips/kernel/elf.c).

Signed-off-by: default avatarDaniil Kovalev <dkovalev@compiler-toolchain-for.me>
Reviewed-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <20230404052153.16617-1-dkovalev@compiler-toolchain-for.me>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent f443a26c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment