qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: gaosong
Subject: Re: [PATCH v16 3/9] linux-user: Add LoongArch elf support
Date: Wed, 15 Jun 2022 17:44:28 +0800
User-agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

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 HWCAP_LOONGARCH_FPU are missing.  I don't know how many of the other features are implemented in target/loongarch/.

HWCAP_LOONGARCH_LAM  and  HWCAP_LOONGARCH_UAL  are need.
Missing ELF_PLATFORM, per the kernel's set_elf_platform(cpu, "loongarch").
OK,  I will correct on next version.

Thanks.
Song Gao

reply via email to

[Prev in Thread] Current Thread [Next in Thread]