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.

Implement support for setting this bit by making the helper functions
raise the appropriate exception.

Signed-off-by: Peter Maydell<peter.mayd...@linaro.org>
---
  target/arm/cpu.h       |  1 +
  target/arm/helper.h    |  4 ++--
  target/arm/helper.c    | 19 +++++++++++++++++--
  target/arm/m_helper.c  |  4 ++++
  target/arm/translate.c |  4 ++--
  5 files changed, 26 insertions(+), 6 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to