qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: Re: [PATCH 2/2] target/arm: Implement M-profile trapping on division by zero
Date: Mon, 2 Aug 2021 12:23:59 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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.maydell@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.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]