Re: [PATCH v16 3/9] linux-user: Add LoongArch elf support

2022-06-15 Thread Richard Henderson
On 6/15/22 02:44, gaosong wrote: Hi Richard. On 2022/6/15 上午12:21, Richard Henderson wrote: On 6/14/22 02:05, Song Gao wrote: +#define ELF_HWCAP get_elf_hwcap() + +static uint32_t get_elf_hwcap(void) +{ +    return 0; +} This should not be zero.  See cpu_probe_common in the kernel.  At minim

Re: [PATCH v16 3/9] linux-user: Add LoongArch elf support

2022-06-15 Thread gaosong
Hi Richard. On 2022/6/15 上午12:21, Richard Henderson wrote: On 6/14/22 02:05, Song Gao wrote: +#define ELF_HWCAP get_elf_hwcap() + +static uint32_t get_elf_hwcap(void) +{ +    return 0; +} This should not be zero.  See cpu_probe_common in the kernel.  At minimum HWCAP_LOONGARCH_CRC32 and HWCA

Re: [PATCH v16 3/9] linux-user: Add LoongArch elf support

2022-06-14 Thread Richard Henderson
On 6/14/22 02:05, Song Gao wrote: +#define ELF_HWCAP get_elf_hwcap() + +static uint32_t get_elf_hwcap(void) +{ +return 0; +} This should not be zero. See cpu_probe_common in the kernel. At minimum HWCAP_LOONGARCH_CRC32 and HWCAP_LOONGARCH_FPU are missing. I don't know how many of the o

[PATCH v16 3/9] linux-user: Add LoongArch elf support

2022-06-14 Thread Song Gao
Signed-off-by: Song Gao Signed-off-by: Xiaojuan Yang Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- linux-user/elfload.c| 54 + linux-user/loongarch64/target_elf.h | 12 +++ 2 files changed, 66 insertions(+) create mode 1