Re: [Qemu-devel] [PATCHv2 04/10] target-ppc: Rework SLB page size lookup

2016-01-27 Thread Benjamin Herrenschmidt
On Wed, 2016-01-27 at 21:13 +1100, David Gibson wrote: > Currently, the ppc_hash64_page_shift() function looks up a page size > based > on information in an SLB entry.  It open codes the bit translation > for > existing CPUs, however different CPU models can have different SLB > encodings.  We alre

[Qemu-devel] [PATCHv2 04/10] target-ppc: Rework SLB page size lookup

2016-01-27 Thread David Gibson
Currently, the ppc_hash64_page_shift() function looks up a page size based on information in an SLB entry. It open codes the bit translation for existing CPUs, however different CPU models can have different SLB encodings. We already store those in the 'sps' table in CPUPPCState, but we don't cur