initialize CPU model list after handling -readconfig options
commitecf40beae7dcbb057d4f115207f9d8276832a774
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 9 Mar 2012 19:19:07 +0000 (9 16:19 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 12 Mar 2012 19:05:26 +0000 (12 14:05 -0500)
treeebe45364ed67a75093e41d16f0583bc45b2d289b
parent885bb0369a4f0abe2c0185178f3cb347cb02cdf1
initialize CPU model list after handling -readconfig options

To properly load cpudefs using -readconfig, we have to call
cpudef_init() after finishing the command-line option handling.

Consequently, the handling of "-cpu ?" has to be done after the
command-line option handling loop, too.

Without this patch, "-readconfig configfile -cpu ?" fails to list the
CPU definitions read from 'configfile'.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c