mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-28 11:50:37 -07:00
target/i386: Register CPUClass:list_cpus
Register x86_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-3-philmd@linaro.org>
This commit is contained in:
parent
0a5692fecc
commit
0bc15e47f0
2 changed files with 2 additions and 4 deletions
|
|
@ -6319,7 +6319,7 @@ static void x86_cpu_list_entry(gpointer data, gpointer user_data)
|
|||
}
|
||||
|
||||
/* list available CPU models and flags */
|
||||
void x86_cpu_list(void)
|
||||
static void x86_cpu_list(void)
|
||||
{
|
||||
int i, j;
|
||||
GSList *list;
|
||||
|
|
@ -8905,6 +8905,7 @@ static void x86_cpu_common_class_init(ObjectClass *oc, void *data)
|
|||
cc->reset_dump_flags = CPU_DUMP_FPU | CPU_DUMP_CCOP;
|
||||
|
||||
cc->class_by_name = x86_cpu_class_by_name;
|
||||
cc->list_cpus = x86_cpu_list;
|
||||
cc->parse_features = x86_cpu_parse_featurestr;
|
||||
cc->dump_state = x86_cpu_dump_state;
|
||||
cc->set_pc = x86_cpu_set_pc;
|
||||
|
|
|
|||
|
|
@ -2365,7 +2365,6 @@ int x86_cpu_gdb_read_register(CPUState *cpu, GByteArray *buf, int reg);
|
|||
int x86_cpu_gdb_write_register(CPUState *cpu, uint8_t *buf, int reg);
|
||||
void x86_cpu_gdb_init(CPUState *cs);
|
||||
|
||||
void x86_cpu_list(void);
|
||||
int cpu_x86_support_mca_broadcast(CPUX86State *env);
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
|
|
@ -2559,8 +2558,6 @@ uint64_t cpu_get_tsc(CPUX86State *env);
|
|||
#define TARGET_DEFAULT_CPU_TYPE X86_CPU_TYPE_NAME("qemu32")
|
||||
#endif
|
||||
|
||||
#define cpu_list x86_cpu_list
|
||||
|
||||
/* MMU modes definitions */
|
||||
#define MMU_KSMAP64_IDX 0
|
||||
#define MMU_KSMAP32_IDX 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue