Re: [PATCH 0/2] arm: Implement M-profile trapping on division by zero

2021-08-02 Thread Richard Henderson
On 7/30/21 5:16 AM, Peter Maydell wrote: Unlike A-profile, for M-profile the UDIV and SDIV insns can be configured to raise an exception on division by zero, using the CCR DIV_0_TRP bit. This patchset implements that missing functionality by having the udiv and sdiv helpers raise an exception if

[PATCH 0/2] arm: Implement M-profile trapping on division by zero

2021-07-30 Thread Peter Maydell
Unlike A-profile, for M-profile the UDIV and SDIV insns can be configured to raise an exception on division by zero, using the CCR DIV_0_TRP bit. This patchset implements that missing functionality by having the udiv and sdiv helpers raise an exception if needed. Some questions: Is it worth allo