OSDN Git Service

linux-user/elfload.c: Correct SME feature names reported in cpuinfo
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Sep 2023 14:36:59 +0000 (15:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2023 13:45:57 +0000 (14:45 +0100)
commite2e40a7790c33ce540d1047e4f780ac4b5c7c6f2
treebfcee6ffda50157327da375cfbd0c29d03e5e2b0
parent32b214384e1e1472ddfa875196c57f6620172301
linux-user/elfload.c: Correct SME feature names reported in cpuinfo

Some of the names we use for CPU features in linux-user's dummy
/proc/cpuinfo don't match the strings in the real kernel in
arch/arm64/kernel/cpuinfo.c. Specifically, the SME related
features have an underscore in the HWCAP_FOO define name,
but (like the SVE ones) they do not have an underscore in the
string in cpuinfo. Correct the errors.

Fixes: a55b9e7226708 ("linux-user: Emulate /proc/cpuinfo on aarch64 and arm")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c