I read the DDI0363G_cortex_r4_r1p4_trm4.pdf ,have some question about DZ bit(Divide of Zero) of System Control Register .If i set 1 to DZ bit.Then do:
U8 DIVIDE_ZeroTest(void)
{
U8 byRet = FALSE; // U8 -->unsigned char
U32 dwTemp = 0;
U32 dwTestVal = 0;
U32 dwBaseVal = 5;
while(1)
{
dwBaseVal = 5;
dwTestVal = dwBaseVal / dwTemp;
dwBaseVal = dwTestVal;
dwBaseVal++;
}
return (byRet);
}
it do not generate any Undefined Instruction exception??Have anyone can answer this question?Are there any En-bit should enable?Point it?thank you!!