[PATCH qemu v2] linux-user: Emulate /proc/cpuinfo output for riscv

2023-03-13 Thread ~abordado
From: Afonso Bordado 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

[PATCH qemu] linux-user: Emulate /proc/cpuinfo output for riscv

2023-03-06 Thread ~abordado
From: Afonso Bordado 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