Re: [PATCH v4 20/24] openrisc: entry: Fix delay slot detection

2017-02-24 Thread Stafford Horne
On Fri, Feb 24, 2017 at 10:32:32AM +0100, Jonas Bonn wrote: > On 02/24/2017 05:32 AM, Stafford Horne wrote: > > Use execption SR stored in pt_regs for detection, the current SR is not > > correct as the handler is running after return from exception. > > > > Also, The code that checks for a delay

Re: [PATCH v4 20/24] openrisc: entry: Fix delay slot detection

2017-02-24 Thread Stafford Horne
On Fri, Feb 24, 2017 at 10:32:32AM +0100, Jonas Bonn wrote: > On 02/24/2017 05:32 AM, Stafford Horne wrote: > > Use execption SR stored in pt_regs for detection, the current SR is not > > correct as the handler is running after return from exception. > > > > Also, The code that checks for a delay

Re: [PATCH v4 20/24] openrisc: entry: Fix delay slot detection

2017-02-24 Thread Jonas Bonn
On 02/24/2017 05:32 AM, Stafford Horne wrote: Use execption SR stored in pt_regs for detection, the current SR is not correct as the handler is running after return from exception. Also, The code that checks for a delay slot uses a flag bitmask and then wants to check if the result is not zero.

Re: [PATCH v4 20/24] openrisc: entry: Fix delay slot detection

2017-02-24 Thread Jonas Bonn
On 02/24/2017 05:32 AM, Stafford Horne wrote: Use execption SR stored in pt_regs for detection, the current SR is not correct as the handler is running after return from exception. Also, The code that checks for a delay slot uses a flag bitmask and then wants to check if the result is not zero.

[PATCH v4 20/24] openrisc: entry: Fix delay slot detection

2017-02-23 Thread Stafford Horne
Use execption SR stored in pt_regs for detection, the current SR is not correct as the handler is running after return from exception. Also, The code that checks for a delay slot uses a flag bitmask and then wants to check if the result is not zero. The test it implemented was wrong. Correct it

[PATCH v4 20/24] openrisc: entry: Fix delay slot detection

2017-02-23 Thread Stafford Horne
Use execption SR stored in pt_regs for detection, the current SR is not correct as the handler is running after return from exception. Also, The code that checks for a delay slot uses a flag bitmask and then wants to check if the result is not zero. The test it implemented was wrong. Correct it