Re: [Qemu-devel] [PATCH 5/9] target-mips: Abstract mmu_idx from hflags

2017-07-06 Thread James Hogan
On Fri, Oct 07, 2016 at 05:08:46PM +0100, Yongbok Kim wrote: > On 06/09/2016 12:03, James Hogan wrote: > > The MIPS mmu_idx is sometimes calculated from hflags without an env > > pointer available as cpu_mmu_index() requires. > > > > Create a common hflags_mmu_index() for the purpose of this calcu

Re: [Qemu-devel] [PATCH 5/9] target-mips: Abstract mmu_idx from hflags

2016-10-07 Thread Yongbok Kim
On 06/09/2016 12:03, James Hogan wrote: > The MIPS mmu_idx is sometimes calculated from hflags without an env > pointer available as cpu_mmu_index() requires. > > Create a common hflags_mmu_index() for the purpose of this calculation > which can operate on any hflags, not just with an env pointe

[Qemu-devel] [PATCH 5/9] target-mips: Abstract mmu_idx from hflags

2016-09-06 Thread James Hogan
The MIPS mmu_idx is sometimes calculated from hflags without an env pointer available as cpu_mmu_index() requires. Create a common hflags_mmu_index() for the purpose of this calculation which can operate on any hflags, not just with an env pointer, and update cpu_mmu_index() itself and gen_interme