From: Richard Henderson <richard.henderson@linaro.org>
To: Helge Deller <deller@gmx.de>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Laurent Vivier" <laurent@vivier.eu>,
"Daniel P . Berrangé" <berrange@redhat.com>,
qemu-arm@nongnu.org
Subject: Re: [PATCH 2/2] linux-user: Emulate /proc/cpuinfo on aarch64 and arm
Date: Tue, 1 Aug 2023 12:22:48 -0700 [thread overview]
Message-ID: <b4f4695c-5257-4ff2-060e-0c6865eb2250@linaro.org> (raw)
In-Reply-To: <20230801191035.374120-3-deller@gmx.de>
On 8/1/23 12:10, Helge Deller wrote:
> + dprintf(fd, "CPU implementer\t: 0x%d\n", is64 ? 50 : 56);
> + dprintf(fd, "CPU architecture: %d\n", is64 ? 8 : 7);
> + dprintf(fd, "CPU variant\t: 0x%d\n", is64 ? 0 : 2);
> + dprintf(fd, "CPU part\t: 0x%d\n", is64 ? 0 : 584);
> + dprintf(fd, "CPU revision\t: %d\n\n", is64 ? 1 : 2);
These all come from cpu->midr. See linux/arch/arm64/kernel/cpuinfo.c:232.
r~
prev parent reply other threads:[~2023-08-01 19:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 19:10 [PATCH 0/2] linux-user: /proc/cpuinfo fix and content emulation for arm Helge Deller
2023-08-01 19:10 ` [PATCH 1/2] linux-user: Fix openat() emulation to correctly detect accesses to /proc Helge Deller
2023-08-01 21:27 ` Daniel P. Berrangé
2023-08-01 19:10 ` [PATCH 2/2] linux-user: Emulate /proc/cpuinfo on aarch64 and arm Helge Deller
2023-08-01 19:22 ` Richard Henderson [this message]
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=b4f4695c-5257-4ff2-060e-0c6865eb2250@linaro.org \
--to=richard.henderson@linaro.org \
--cc=berrange@redhat.com \
--cc=deller@gmx.de \
--cc=laurent@vivier.eu \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).