MPC5554 divide-by-zero exception on an integer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5554 divide-by-zero exception on an integer

2,659件の閲覧回数
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,356件の閲覧回数
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,356件の閲覧回数
schlosserolivie
Contributor I

Ok, thank you for your help.

Olivier

0 件の賞賛
返信