From: Richard Henderson <richard.henderson@linaro.org>
To: Helge Deller <deller@gmx.de>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, "Daniel P . Berrangé" <berrange@redhat.com>,
"Laurent Vivier" <laurent@vivier.eu>,
"Peter Maydell" <peter.maydell@linaro.org>
Subject: Re: [PATCH v4 2/3] linux-user: Emulate /proc/cpuinfo on aarch64 and arm
Date: Thu, 3 Aug 2023 15:44:03 -0700 [thread overview]
Message-ID: <b8f7799a-c54d-1635-d5b0-abe7e515bc19@linaro.org> (raw)
In-Reply-To: <20230803214450.647040-3-deller@gmx.de>
On 8/3/23 14:44, Helge Deller wrote:
> Add emulation for /proc/cpuinfo for arm architecture.
> The output below mimics output as seen on debian porterboxes.
>
> aarch64 output example:
>
> processor : 0
> model name : ARMv8 Processor rev 0 (v8l)
> BogoMIPS : 100.00
> Features : swp half thumb fast_mult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae aes pmull sha1 sha2 crc32
> CPU implementer : 0x41
> CPU architecture: 8
> CPU variant : 0x1
> CPU part : 0xd07
> CPU revision : 0
> Hardware : QEMU v8.0.92 arm,cortex-a57
>
> arm 32-bit output example:
>
> processor : 0
> model name : ARMv5 Processor rev 6 (armv5l)
> BogoMIPS : 50.00
> Features : swp half thumb fast_mult edsp
> CPU implementer : 0x69
> CPU architecture: 5
> CPU variant : 0
> CPU part : 0x2d0
> CPU revision : 6
> Hardware : QEMU v8.0.92 marvell,xscale
> Revision : 0000
> Serial : 0000000000000000
>
> Signed-off-by: Helge Deller<deller@gmx.de>
>
> v5:
> - use is_a64()
> v4:
> - more refinements based on Richards feedback
> v3:
> - show variant, part, revision and implementor based on midr
> value (suggested by Richard Henderson)
> v2:
> - show features of CPU which is actually being emulated by qemu
> (suggested by Peter Maydell)
> ---
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2023-08-03 22:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-03 21:44 [PATCH v4 0/3] linux-user: /proc/cpuinfo fix and content emulation for arm Helge Deller
2023-08-03 21:44 ` [PATCH v4 1/3] linux-user: Fix openat() emulation to correctly detect accesses to /proc Helge Deller
2023-08-03 21:44 ` [PATCH v4 2/3] linux-user: Emulate /proc/cpuinfo on aarch64 and arm Helge Deller
2023-08-03 22:44 ` Richard Henderson [this message]
2023-08-03 21:44 ` [PATCH v4 3/3] linux-user: Emulate /proc/cpuinfo for Alpha Helge Deller
2023-08-03 22:44 ` Richard Henderson
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=b8f7799a-c54d-1635-d5b0-abe7e515bc19@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).