linux-user: Emulate /proc/cpuinfo output for riscv
RISC-V does not expose all extensions via hwcaps, thus some userspace applications may want to query these via /proc/cpuinfo. Currently when querying this file the host's file is shown instead which is slightly confusing. Emulate a basic /proc/cpuinfo file with mmu info and an ISA string. Signed-off-by:Afonso Bordado <afonsobordado@gmail.com> Reviewed-by:
Palmer Dabbelt <palmer@rivosinc.com> Acked-by:
Palmer Dabbelt <palmer@rivosinc.com> Reviewed-by:
Laurent Vivier <laurent@vivier.eu> Reviewed-by:
Alistair Francis <alistair.francis@wdc.com> Reviewed-by:
LIU Zhiwei <zhiwei_liu@linux.alibaba.com> Message-Id: <167873059442.9885.15152085316575248452-0@git.sr.ht> [lv: removed the test that fails in CI for unknown reason] Signed-off-by:
Laurent Vivier <laurent@vivier.eu>
Loading
Please register or sign in to comment