mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 07:08:24 +00:00
Drop cpu_list_id macro
Since the only user of the extended cpu_list_id() format was the x86 ?model/?dump/?cpuid output, we can drop it completely. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
6cdf885420
commit
e916cbf803
6
cpus.c
6
cpus.c
@ -1192,10 +1192,8 @@ void set_cpu_log_filename(const char *optarg)
|
|||||||
void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg)
|
void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg)
|
||||||
{
|
{
|
||||||
/* XXX: implement xxx_cpu_list for targets that still miss it */
|
/* XXX: implement xxx_cpu_list for targets that still miss it */
|
||||||
#if defined(cpu_list_id)
|
#if defined(cpu_list)
|
||||||
cpu_list_id(f, cpu_fprintf, optarg);
|
cpu_list(f, cpu_fprintf);
|
||||||
#elif defined(cpu_list)
|
|
||||||
cpu_list(f, cpu_fprintf); /* deprecated */
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3130,10 +3130,8 @@ static void handle_arg_cpu(const char *arg)
|
|||||||
cpu_model = strdup(arg);
|
cpu_model = strdup(arg);
|
||||||
if (cpu_model == NULL || is_help_option(cpu_model)) {
|
if (cpu_model == NULL || is_help_option(cpu_model)) {
|
||||||
/* XXX: implement xxx_cpu_list for targets that still miss it */
|
/* XXX: implement xxx_cpu_list for targets that still miss it */
|
||||||
#if defined(cpu_list_id)
|
#if defined(cpu_list)
|
||||||
cpu_list_id(stdout, &fprintf, "");
|
cpu_list(stdout, &fprintf);
|
||||||
#elif defined(cpu_list)
|
|
||||||
cpu_list(stdout, &fprintf); /* deprecated */
|
|
||||||
#endif
|
#endif
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -1073,8 +1073,8 @@ static void listflags(char *buf, int bufsize, uint32_t fbits,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* generate CPU information */
|
/* generate CPU information. */
|
||||||
void x86_cpu_list(FILE *f, fprintf_function cpu_fprintf, const char *optarg)
|
void x86_cpu_list(FILE *f, fprintf_function cpu_fprintf)
|
||||||
{
|
{
|
||||||
x86_def_t *def;
|
x86_def_t *def;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
@ -792,7 +792,7 @@ typedef struct CPUX86State {
|
|||||||
|
|
||||||
X86CPU *cpu_x86_init(const char *cpu_model);
|
X86CPU *cpu_x86_init(const char *cpu_model);
|
||||||
int cpu_x86_exec(CPUX86State *s);
|
int cpu_x86_exec(CPUX86State *s);
|
||||||
void x86_cpu_list (FILE *f, fprintf_function cpu_fprintf, const char *optarg);
|
void x86_cpu_list(FILE *f, fprintf_function cpu_fprintf);
|
||||||
void x86_cpudef_setup(void);
|
void x86_cpudef_setup(void);
|
||||||
int cpu_x86_support_mca_broadcast(CPUX86State *env);
|
int cpu_x86_support_mca_broadcast(CPUX86State *env);
|
||||||
|
|
||||||
@ -976,7 +976,7 @@ static inline CPUX86State *cpu_init(const char *cpu_model)
|
|||||||
#define cpu_exec cpu_x86_exec
|
#define cpu_exec cpu_x86_exec
|
||||||
#define cpu_gen_code cpu_x86_gen_code
|
#define cpu_gen_code cpu_x86_gen_code
|
||||||
#define cpu_signal_handler cpu_x86_signal_handler
|
#define cpu_signal_handler cpu_x86_signal_handler
|
||||||
#define cpu_list_id x86_cpu_list
|
#define cpu_list x86_cpu_list
|
||||||
#define cpudef_setup x86_cpudef_setup
|
#define cpudef_setup x86_cpudef_setup
|
||||||
|
|
||||||
#define CPU_SAVE_VERSION 12
|
#define CPU_SAVE_VERSION 12
|
||||||
|
Loading…
Reference in New Issue
Block a user