mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target-i386: Rename cpu_x86_register() to x86_cpu_load_def()
There isn't any kind of "registration" involved in cpu_x86_register() anymore: it is simply looking up a CPU model name and loading the model definition data into the X86CPU object. Rename it to x86_cpu_load_def() to reflect what it does. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
8c2e1b0093
commit
c080e30ec8
1 changed files with 4 additions and 2 deletions
|
@ -1817,7 +1817,9 @@ static void filter_features_for_kvm(X86CPU *cpu)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cpu_x86_register(X86CPU *cpu, const char *name, Error **errp)
|
/* Load CPU definition for a given CPU model name
|
||||||
|
*/
|
||||||
|
static void x86_cpu_load_def(X86CPU *cpu, const char *name, Error **errp)
|
||||||
{
|
{
|
||||||
CPUX86State *env = &cpu->env;
|
CPUX86State *env = &cpu->env;
|
||||||
x86_def_t def1, *def = &def1;
|
x86_def_t def1, *def = &def1;
|
||||||
|
@ -1900,7 +1902,7 @@ X86CPU *cpu_x86_create(const char *cpu_model, DeviceState *icc_bridge,
|
||||||
object_unref(OBJECT(cpu));
|
object_unref(OBJECT(cpu));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cpu_x86_register(cpu, name, &error);
|
x86_cpu_load_def(cpu, name, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue