On 24/09/25, 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é <phi...@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(-)
Reviewed-by: Anton Johansson <a...@rev.ng>