From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
Igor Mammedov <imammedo@redhat.com>,
Anton Johansson <anjo@rev.ng>,
Pierrick Bouvier <pierrick.bouvier@linaro.org>
Subject: Re: [PATCH v2] target/alpha: Access CPUState::cpu_index via helper
Date: Tue, 7 Oct 2025 10:19:30 +0200 [thread overview]
Message-ID: <225f6427-f950-4260-a95c-cf7dbe2e7867@linaro.org> (raw)
In-Reply-To: <20250925010438.59755-1-philmd@linaro.org>
On 25/9/25 03:04, Philippe Mathieu-Daudé wrote:
> CPUState::cpu_index is a target agnostic field, meant
> for common code (i.e. accel/ and system/ folders).
>
> Target specific code should use the CPUClass::get_arch_id()
> helper, even if there is a 1:1 mapping.
>
> In preparation of generic changes around CPU indexing,
> introduce the whoami helper to access the generic
> CPUState::cpu_index field.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Reviewed-by: Anton Johansson <anjo@rev.ng>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/alpha/helper.h | 1 +
> target/alpha/sys_helper.c | 5 +++++
> target/alpha/translate.c | 3 +--
> 3 files changed, 7 insertions(+), 2 deletions(-)
Patch queued, thanks.
prev parent reply other threads:[~2025-10-07 8:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-25 1:04 [PATCH v2] target/alpha: Access CPUState::cpu_index via helper Philippe Mathieu-Daudé
2025-10-07 8:19 ` Philippe Mathieu-Daudé [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=225f6427-f950-4260-a95c-cf7dbe2e7867@linaro.org \
--to=philmd@linaro.org \
--cc=anjo@rev.ng \
--cc=imammedo@redhat.com \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).