mirror of https://github.com/proxmox/mirror_qemu
target-i386: Rename cpu_x86_init() to cpu_x86_init_user()
The function is used only for CONFIG_USER, so make its purpose clear. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>master
parent
8a3f75b39d
commit
644dba250a
|
@ -2135,7 +2135,7 @@ out:
|
||||||
return cpu;
|
return cpu;
|
||||||
}
|
}
|
||||||
|
|
||||||
X86CPU *cpu_x86_init(const char *cpu_model)
|
X86CPU *cpu_x86_init_user(const char *cpu_model)
|
||||||
{
|
{
|
||||||
Error *error = NULL;
|
Error *error = NULL;
|
||||||
X86CPU *cpu;
|
X86CPU *cpu;
|
||||||
|
|
|
@ -982,7 +982,7 @@ typedef struct CPUX86State {
|
||||||
|
|
||||||
#include "cpu-qom.h"
|
#include "cpu-qom.h"
|
||||||
|
|
||||||
X86CPU *cpu_x86_init(const char *cpu_model);
|
X86CPU *cpu_x86_init_user(const char *cpu_model);
|
||||||
X86CPU *cpu_x86_create(const char *cpu_model, DeviceState *icc_bridge,
|
X86CPU *cpu_x86_create(const char *cpu_model, DeviceState *icc_bridge,
|
||||||
Error **errp);
|
Error **errp);
|
||||||
int cpu_x86_exec(CPUX86State *s);
|
int cpu_x86_exec(CPUX86State *s);
|
||||||
|
@ -1173,7 +1173,7 @@ uint64_t cpu_get_tsc(CPUX86State *env);
|
||||||
|
|
||||||
static inline CPUX86State *cpu_init(const char *cpu_model)
|
static inline CPUX86State *cpu_init(const char *cpu_model)
|
||||||
{
|
{
|
||||||
X86CPU *cpu = cpu_x86_init(cpu_model);
|
X86CPU *cpu = cpu_x86_init_user(cpu_model);
|
||||||
if (cpu == NULL) {
|
if (cpu == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue