> What if instead of having a "mmu_index" for the mmu arrays, we have a pointer > to the "mmu context". This does imply an extra memory load on the fast path, > but probably not an extra instruction. > > With this, we can suddenly afford to have a relatively large number of mmu > contexts, with which we could implement address space numbers for relevant > targets. > > It is, of course, a much larger change, but perhaps it's of larger benefit.
Sounds good. I can give it a shot---in the meanwhile, since I forgot to Cc qemu-ppc, Alex can you review/apply patch 1? Paolo