mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/ppc: Register CPUClass:list_cpus
Register ppc_cpu_list() as CPUClass:list_cpus callback. Reduce its scope and remove the cpu_list definition. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250324185837.46506-4-philmd@linaro.org>
This commit is contained in:
parent
0bc15e47f0
commit
53c895fbb2
2 changed files with 2 additions and 5 deletions
|
@ -1610,8 +1610,6 @@ void ppc_store_dawrx1(CPUPPCState *env, uint32_t value);
|
|||
#endif /* !defined(CONFIG_USER_ONLY) */
|
||||
void ppc_store_msr(CPUPPCState *env, target_ulong value);
|
||||
|
||||
void ppc_cpu_list(void);
|
||||
|
||||
/* Time-base and decrementer management */
|
||||
uint64_t cpu_ppc_load_tbl(CPUPPCState *env);
|
||||
uint32_t cpu_ppc_load_tbu(CPUPPCState *env);
|
||||
|
@ -1673,8 +1671,6 @@ static inline uint64_t ppc_dump_gpr(CPUPPCState *env, int gprn)
|
|||
int ppc_dcr_read(ppc_dcr_t *dcr_env, int dcrn, uint32_t *valp);
|
||||
int ppc_dcr_write(ppc_dcr_t *dcr_env, int dcrn, uint32_t val);
|
||||
|
||||
#define cpu_list ppc_cpu_list
|
||||
|
||||
/* MMU modes definitions */
|
||||
#define MMU_USER_IDX 0
|
||||
static inline int ppc_env_mmu_index(CPUPPCState *env, bool ifetch)
|
||||
|
|
|
@ -7177,7 +7177,7 @@ static void ppc_cpu_list_entry(gpointer data, gpointer user_data)
|
|||
g_free(name);
|
||||
}
|
||||
|
||||
void ppc_cpu_list(void)
|
||||
static void ppc_cpu_list(void)
|
||||
{
|
||||
GSList *list;
|
||||
|
||||
|
@ -7521,6 +7521,7 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data)
|
|||
&pcc->parent_phases);
|
||||
|
||||
cc->class_by_name = ppc_cpu_class_by_name;
|
||||
cc->list_cpus = ppc_cpu_list;
|
||||
cc->dump_state = ppc_cpu_dump_state;
|
||||
cc->set_pc = ppc_cpu_set_pc;
|
||||
cc->get_pc = ppc_cpu_get_pc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue