From: Laurent Vivier <laurent@vivier.eu>
To: Helge Deller <deller@gmx.de>, Riku Voipio <riku.voipio@iki.fi>,
qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user: Add support for /proc/cpuinfo on hppa platform
Date: Sat, 25 Apr 2020 10:14:40 +0200 [thread overview]
Message-ID: <8c63cd8b-f5f7-a1ab-f586-6c75bcfd5f3f@vivier.eu> (raw)
In-Reply-To: <20200424210648.GA26715@ls3530.fritz.box>
Le 24/04/2020 à 23:06, Helge Deller a écrit :
> Provide an own /proc/cpuinfo file for the hppa (parisc) platform.
>
> Signed-off-by: Helge Deller <deller@gmx.de>
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 05f03919ff..ebf0d38321 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -7438,6 +7435,18 @@ static int open_cpuinfo(void *cpu_env, int fd)
> }
> #endif
>
> +#if defined(TARGET_HPPA)
> +static int open_cpuinfo(void *cpu_env, int fd)
> +{
> + dprintf(fd, "cpu family\t: PA-RISC 1.1e\n");
> + dprintf(fd, "cpu\t\t: PA7300LC (PCX-L2)\n");
> + dprintf(fd, "capabilities\t: os32\n");
> + dprintf(fd, "model\t\t: 9000/778/B160L\n");
> + dprintf(fd, "model name\t: Merlin L2 160 QEMU (9000/778/B160L)\n");
> + return 0;
> +}
> +#endif
> +
> #if defined(TARGET_M68K)
> static int open_hardware(void *cpu_env, int fd)
> {
> @@ -7462,7 +7471,7 @@ static int do_openat(void *cpu_env, int dirfd, const char *pathname, int flags,
> #if defined(HOST_WORDS_BIGENDIAN) != defined(TARGET_WORDS_BIGENDIAN)
> { "/proc/net/route", open_net_route, is_proc },
> #endif
> -#if defined(TARGET_SPARC)
> +#if defined(TARGET_SPARC) || defined(TARGET_HPPA)
> { "/proc/cpuinfo", open_cpuinfo, is_proc },
> #endif
> #if defined(TARGET_M68K)
>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
next prev parent reply other threads:[~2020-04-25 8:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-24 21:06 [PATCH] linux-user: Add support for /proc/cpuinfo on hppa platform Helge Deller
2020-04-24 21:50 ` Richard Henderson
2020-04-25 8:14 ` Laurent Vivier [this message]
2020-05-27 14:34 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c63cd8b-f5f7-a1ab-f586-6c75bcfd5f3f@vivier.eu \
--to=laurent@vivier.eu \
--cc=deller@gmx.de \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).