Re: [Qemu-devel] [PATCH 4/5] sparc64: fix mmu context at trap levels above zero

2011-04-04 Thread Igor Kovalenko
On Mon, Apr 4, 2011 at 10:37 PM, Blue Swirl wrote: > On Mon, Apr 4, 2011 at 8:25 PM, Artyom Tarasenko wrote: >> On Sat, May 22, 2010 at 12:52 PM, Igor V. Kovalenko >> wrote: >>> --- a/target-sparc/helper.c >>> +++ b/target-sparc/helper.c >>> @@ -572,6 +572,23 @@ static int get_physical_address(C

Re: [Qemu-devel] [PATCH 4/5] sparc64: fix mmu context at trap levels above zero

2011-04-04 Thread Blue Swirl
On Mon, Apr 4, 2011 at 8:25 PM, Artyom Tarasenko wrote: > On Sat, May 22, 2010 at 12:52 PM, Igor V. Kovalenko > wrote: >> --- a/target-sparc/helper.c >> +++ b/target-sparc/helper.c >> @@ -572,6 +572,23 @@ static int get_physical_address(CPUState *env, >> target_phys_addr_t *physical, >>     /* ?

Re: [Qemu-devel] [PATCH 4/5] sparc64: fix mmu context at trap levels above zero

2011-04-04 Thread Artyom Tarasenko
On Sat, May 22, 2010 at 12:52 PM, Igor V. Kovalenko wrote: > --- a/target-sparc/helper.c > +++ b/target-sparc/helper.c > @@ -572,6 +572,23 @@ static int get_physical_address(CPUState *env, > target_phys_addr_t *physical, >     /* ??? We treat everything as a small page, then explicitly flush >  

[Qemu-devel] [PATCH 4/5] sparc64: fix mmu context at trap levels above zero

2010-05-22 Thread Igor V. Kovalenko
From: Igor V. Kovalenko - cpu_mmu_index return MMU_NUCLEUS_IDX if trap level is not zero - cpu_get_tb_cpu_state: store trap level and primary context in flags this allows to restart code translation when address translation is changed - stop translation block after writing to pstate and tl regi