Re: [Qemu-devel] [PATCH] target-mips: Fix exceptions while UX=0

2015-11-17 Thread James Hogan
Hi Leon, On Tue, Nov 17, 2015 at 04:09:24PM +, Leon Alrae wrote: > On 16/11/15 16:18, James Hogan wrote: > > However when exceptions are taken outside of exception level, > > mips_cpu_do_interrupt() manipulates the env->hflags directly rather than > > using compute_hflags() to update them, and

Re: [Qemu-devel] [PATCH] target-mips: Fix exceptions while UX=0

2015-11-17 Thread Leon Alrae
On 16/11/15 16:18, James Hogan wrote: > However when exceptions are taken outside of exception level, > mips_cpu_do_interrupt() manipulates the env->hflags directly rather than > using compute_hflags() to update them, and this code wasn't updated > accordingly. As a result, when UX is cleared, MIPS

[Qemu-devel] [PATCH] target-mips: Fix exceptions while UX=0

2015-11-16 Thread James Hogan
Commit 01f728857941 ("target-mips: Status.UX/SX/KX enable 32-bit address wrapping") added a new hflag MIPS_HFLAG_AWRAP, which indicates that 64-bit addressing is disallowed in the current mode, so hflag users don't need to worry about the complexities of working that out, for example checking both