diff options
| author | Afonso Bordado <afonsobordado@gmail.com> | 2023-03-05 14:34:37 +0000 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2023-05-17 07:19:47 +0200 |
| commit | 8ddc171b7b302844d9f4598125fed925b72c686c (patch) | |
| tree | b00b2a6fdb2a941d312f10fcdc579df06aac368a /linux-user/mips/cpu_loop.c | |
| parent | 7c18f2d663521f1b31b821a13358ce38075eaf7d (diff) | |
| download | focaccia-qemu-8ddc171b7b302844d9f4598125fed925b72c686c.tar.gz focaccia-qemu-8ddc171b7b302844d9f4598125fed925b72c686c.zip | |
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>
Diffstat (limited to 'linux-user/mips/cpu_loop.c')
0 files changed, 0 insertions, 0 deletions