]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/alpha: Access CPUState::cpu_index via helper
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 27 Aug 2025 12:07:26 +0000 (14:07 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 08:33:33 +0000 (10:33 +0200)
commita6a5f0b4644ed41878936d264bc23dd72532771f
tree62ba4f29d2a3bc016eb052230f842ebba54eb176
parent482869ca84a33c4d407f580400033fa5f146c1a7
target/alpha: Access CPUState::cpu_index via helper

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>
Message-Id: <20250925010438.59755-1-philmd@linaro.org>
target/alpha/helper.h
target/alpha/sys_helper.c
target/alpha/translate.c