diff options
author | Andreas Färber <afaerber@suse.de> | 2012-04-17 12:00:51 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-04-25 10:51:35 +0200 |
commit | 61dcd775785b07a5e0c3858b67aa356b87543710 (patch) | |
tree | 3167ec34ad1cb53a941f485c216698c154093990 /target-i386/cpu.c | |
parent | d0a6acf456a2497ce9f70f8366a5b405745ba279 (diff) | |
download | qemu-61dcd775785b07a5e0c3858b67aa356b87543710.zip qemu-61dcd775785b07a5e0c3858b67aa356b87543710.tar.gz qemu-61dcd775785b07a5e0c3858b67aa356b87543710.tar.bz2 |
target-i386: Pass X86CPU to cpu_x86_register()
Avoids an x86_env_get_cpu() call there, to work with QOM properties.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'target-i386/cpu.c')
-rw-r--r-- | target-i386/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c index e1517e6..3dc0f80 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -905,8 +905,9 @@ void x86_cpu_list(FILE *f, fprintf_function cpu_fprintf, const char *optarg) } } -int cpu_x86_register (CPUX86State *env, const char *cpu_model) +int cpu_x86_register(X86CPU *cpu, const char *cpu_model) { + CPUX86State *env = &cpu->env; x86_def_t def1, *def = &def1; memset(def, 0, sizeof(*def)); |