]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Fold slb_nr into PPCHash64Options
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 29 Mar 2018 07:29:38 +0000 (18:29 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:22 +0000 (18:05 +1000)
commit67d7d66f27c49a87c6f28ccff814f5d7eaaccec6
tree93dd765ac703f1d48db281e541c309af53d9b14f
parent0941d728a4636f68523d99a729e24ee12c36d440
target/ppc: Fold slb_nr into PPCHash64Options

The env->slb_nr field gives the size of the SLB (Segment Lookaside Buffer).
This is another static-after-initialization parameter of the specific
version of the 64-bit hash MMU in the CPU.  So, this patch folds the field
into PPCHash64Options with the other hash MMU options.

This is a bit more complicated that the things previously put in there,
because slb_nr was foolishly included in the migration stream.  So we need
some of the usual dance to handle backwards compatible migration.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/pnv.c
hw/ppc/spapr.c
target/ppc/cpu.h
target/ppc/kvm.c
target/ppc/machine.c
target/ppc/mmu-hash64.c
target/ppc/mmu-hash64.h
target/ppc/translate_init.c