summary refs log tree commit diff stats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2016-08-10 21:08:01 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2016-08-13 17:32:58 +1000
commite703d2f71c0f3f721b66bd2955135524538d2c58 (patch)
tree4e6b24421052da975967e486522d0f6b42bedb20 /linux-user/syscall.c
parent6bbbb0ac136102098a70b97ab0c07bc7bf53131c (diff)
downloadfocaccia-qemu-e703d2f71c0f3f721b66bd2955135524538d2c58.tar.gz
focaccia-qemu-e703d2f71c0f3f721b66bd2955135524538d2c58.zip
ppc: parse cpu features once
Considering that features are converted to global properties and
global properties are automatically applied to every new instance
of created CPU (at object_new() time), there is no point in
parsing cpu_model string every time a CPU created. So move
parsing outside CPU creation loop and do it only once.

Parsing also should be done before any CPU is created so that
features would affect the first CPU a well.

This patch does that for all PowerPC machine types.

It is based on previous work from Bharata:

https://lists.nongnu.org/archive/html/qemu-devel/2016-06/msg07564.html

Signed-off-by: Greg Kurz <groug@kaod.org>
[clg: only kept the fix for the spapr platform. support for other
      platform will be added in 2.8 ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions