mirror of
https://github.com/mii443/qemu.git
synced 2025-08-27 09:29:48 +00:00
target-i386: Let cpu_x86_init() return X86CPU
Turn cpu_init macro into a static inline function returning CPUX86State for backwards compatibility. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
This commit is contained in:
@ -1157,7 +1157,7 @@ int cpu_x86_get_descr_debug(CPUX86State *env, unsigned int selector,
|
||||
return 1;
|
||||
}
|
||||
|
||||
CPUX86State *cpu_x86_init(const char *cpu_model)
|
||||
X86CPU *cpu_x86_init(const char *cpu_model)
|
||||
{
|
||||
X86CPU *cpu;
|
||||
CPUX86State *env;
|
||||
@ -1183,7 +1183,7 @@ CPUX86State *cpu_x86_init(const char *cpu_model)
|
||||
|
||||
x86_cpu_realize(OBJECT(cpu), NULL);
|
||||
|
||||
return env;
|
||||
return cpu;
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
|
Reference in New Issue
Block a user