Re: [Qemu-devel] [PATCH] target-mips: Fix RDHWR exception host PC

2016-04-28 Thread James Hogan
On Thu, Apr 28, 2016 at 09:53:04AM +0100, Leon Alrae wrote: > On 27/04/16 23:21, James Hogan wrote: > > Commit b00c72180c36 ("target-mips: add PC, XNP reg numbers to RDHWR") > > changed the rdhwr helpers to use check_hwrena() to check the register > > being accessed is enabled in CP0_HWREna when us

Re: [Qemu-devel] [PATCH] target-mips: Fix RDHWR exception host PC

2016-04-28 Thread James Hogan
On Thu, Apr 28, 2016 at 10:51:28AM +0200, Aurelien Jarno wrote: > On 2016-04-27 23:21, James Hogan wrote: > > Commit b00c72180c36 ("target-mips: add PC, XNP reg numbers to RDHWR") > > changed the rdhwr helpers to use check_hwrena() to check the register > > being accessed is enabled in CP0_HWREna w

Re: [Qemu-devel] [PATCH] target-mips: Fix RDHWR exception host PC

2016-04-28 Thread Leon Alrae
On 27/04/16 23:21, James Hogan wrote: > Commit b00c72180c36 ("target-mips: add PC, XNP reg numbers to RDHWR") > changed the rdhwr helpers to use check_hwrena() to check the register > being accessed is enabled in CP0_HWREna when used from user mode. If > that check fails an EXCP_RI exception is rai

Re: [Qemu-devel] [PATCH] target-mips: Fix RDHWR exception host PC

2016-04-28 Thread Aurelien Jarno
On 2016-04-27 23:21, James Hogan wrote: > Commit b00c72180c36 ("target-mips: add PC, XNP reg numbers to RDHWR") > changed the rdhwr helpers to use check_hwrena() to check the register > being accessed is enabled in CP0_HWREna when used from user mode. If > that check fails an EXCP_RI exception is r

[Qemu-devel] [PATCH] target-mips: Fix RDHWR exception host PC

2016-04-27 Thread James Hogan
Commit b00c72180c36 ("target-mips: add PC, XNP reg numbers to RDHWR") changed the rdhwr helpers to use check_hwrena() to check the register being accessed is enabled in CP0_HWREna when used from user mode. If that check fails an EXCP_RI exception is raised at the host PC calculated with GETPC(). H