OSDN Git Service

spapr: Set compatibility mode before the rest of spapr_cpu_reset()
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 5 Apr 2018 05:49:23 +0000 (15:49 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:23 +0000 (18:05 +1000)
commit88f42c6773c0c09f5c38d5eb0cd6e8b7aed4dfeb
treee18d2df0fc12deac25e4cb935924c4bd519ee294
parent4550f6a5da691fa45e801f391e947ff4236d1fa6
spapr: Set compatibility mode before the rest of spapr_cpu_reset()

Although the order doesn't really matter at the moment, it's possible
other initializastions could depend on the compatiblity mode, so make sure
we set it first in spapr_cpu_reset().

While we're at it drop the test against first_cpu.  Setting the compat mode
to the value it already has is redundant, but harmless, so we might as well
make a small simplification to the code.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/spapr_cpu_core.c