Enable exceptions for dividing by zero float for CORTEX R7

Hi all,

I need to enable exception handling in case of dividing by zero in case of float numbers yet I am not sure even if it is supported in cortex R7 could someone help me if i am missing something .

Thanks .

Parents
  • In Cortex-R7 Technical Reference Manual (TRM), you can find SCTLR.DZ bit ( SCTLR.bit[19] )

    Divide by Zero fault enable bit. This bit controls whether an integer divide by zero causes an UNDEFINED Instruction exception:

    • 0 Divide by zero returns the result zero, and no exception is taken. This is the reset value.
    • 1 Attempting a divide by zero causes an UNDEFINED Instruction exception on the SDIV or UDIV instruction
Reply
  • In Cortex-R7 Technical Reference Manual (TRM), you can find SCTLR.DZ bit ( SCTLR.bit[19] )

    Divide by Zero fault enable bit. This bit controls whether an integer divide by zero causes an UNDEFINED Instruction exception:

    • 0 Divide by zero returns the result zero, and no exception is taken. This is the reset value.
    • 1 Attempting a divide by zero causes an UNDEFINED Instruction exception on the SDIV or UDIV instruction
Children
No data