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

2016-01-26 Thread David Gibson
On Mon, Jan 25, 2016 at 08:38:49PM +0100, Alexander Graf wrote: > > > On 01/25/2016 06:15 AM, 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 diffe

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

2016-01-25 Thread Alexander Graf
On 01/25/2016 06:15 AM, 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 already store those in

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

2016-01-24 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