MPC5554 divide-by-zero exception on an integer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5554 divide-by-zero exception on an integer

2,911 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

2,608 次查看
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,608 次查看
schlosserolivie
Contributor I

Ok, thank you for your help.

Olivier

0 项奖励
回复