On 24/3/25 19:46, Philippe Mathieu-Daudé wrote:
Register s390_cpu_list() as CPUClass:list_cpus callback
and remove the cpu_list definition.
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
target/s390x/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index 8449bfee5a9..2876f2c4eb3 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -385,6 +385,7 @@ static void s390_cpu_class_init(ObjectClass *oc, void *data)
&scc->parent_phases);
cc->class_by_name = s390_cpu_class_by_name;
+ cc->list_cpus = s390_cpu_list;
cc->mmu_index = s390x_cpu_mmu_index;
cc->dump_state = s390_cpu_dump_state;
cc->query_cpu_fast = s390_query_cpu_fast;
Grr, I forgot to commit this hunk:
-- >8 --
--- a/target/s390x/cpu.h
+++ b/target/s390x/cpu.h
@@ -902,5 +902,2 @@ static inline uint8_t s390_cpu_get_state(S390CPU *cpu)
-#define cpu_list s390_cpu_list
-
-
/* helper.c */
---