]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/mmu-hash64.c
target/ppc: Move page size setup to helper function
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Mar 2018 02:07:48 +0000 (13:07 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:22 +0000 (18:05 +1000)
commita059471d2536dad316dfc24dd03790d0cd597081
treec31512c798dd073083211377ee3d2076d2f6cc6b
parentdc71b55956b45a4aa6f280b57a3088d169bfc636
target/ppc: Move page size setup to helper function

Initialization of the env->sps structure at the end of instance_init is
specific to the 64-bit hash MMU, so move the code into a helper function
in mmu-hash64.c.

We also create a corresponding function to be called at finalize time -
it's empty for now, but we'll need it shortly.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
target/ppc/mmu-hash64.c
target/ppc/mmu-hash64.h
target/ppc/translate_init.c