linux-user: add pseudo /proc/cpuinfo for sparc
commitfff6938264fc09e941b2e572e32fa70f7da7f884
authorLaurent Vivier <laurent@vivier.eu>
Fri, 17 May 2019 13:31:48 +0000 (17 15:31 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 22 May 2019 18:50:55 +0000 (22 20:50 +0200)
tree45a992f59f5274a55a569ba81cd5b86f38edcc8f
parenta4f667b6714916683408b983cfe0a615a725775f
linux-user: add pseudo /proc/cpuinfo for sparc

SPARC libc6 debian package wants to check the cpu level to be
installed or not:

  WARNING: This machine has a SPARC V8 or earlier class processor.
  Debian lenny and later does not support such old hardware
  any longer.

To avoid this, it only needs to know if the machine type is sun4u or sun4v,
for that it reads the information from /proc/cpuinfo.

Fixes: 9a93c152fcdb4ab2cd85094487b33578fd693915
       ("linux-user: fix UNAME_MACHINE for sparc/sparc64")
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20190517133149.19593-2-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c