MPC5554 divide-by-zero exception on an integer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5554 divide-by-zero exception on an integer

2,663 Views
schlosserolivie
Contributor I


Hello,

 

I am trying to generate an interrupt in case divide-by-zero.

This is working on divide float instruction but not on a divide integer instruction ("divw").

 

On a divide integer instruction, the result of a divide-by-zero is the maximum value (0xFFFFFFFF).

 

I do not find any configuration on the processor to force an interrupt. Do some one did it ?

 

Thanks

Olivier

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

2,360 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Olivier,

Unfortunately, the integer division instructions implemented in the e200z6 core (MPC5554) do not generate an exception when a division by zero is performed.

I just tested integer division (both SPE and non-SPE division instructions) but the result

was the expected one: only the overflow bits get set when a division by zero is executed.

Lukas

2,360 Views
schlosserolivie
Contributor I

Ok, thank you for your help.

Olivier

0 Kudos
Reply