Andes Workshop
http://forum.andestech.com/

ir14 的 all zero opcode reserved interruption exception
http://forum.andestech.com/viewtopic.php?f=7&t=154
Page 1 of 1

Author:  cindy [ Sat Sep 24, 2011 10:49 am ]
Post subject:  ir14 的 all zero opcode reserved interruption exception

ALZ 是提供一個特殊目的 debug 工具, 設計的用途是如果程式不明原因亂跑時, 如果執行到 All Zero Opcode reserved instruction (0x00000000), 可以盡快產生 exception. 否則如果程式亂跑又 fetch 到的 code 是 All Zero Opcode (一般 padding data 會塞 0x00 or 0xff ), 程式會視為正常狀況而繼續執行. 所以你可能無法知道程式的錯誤點.

但是, All Zero Opcode 也是一個合法指令 (LBI R0, [R0+0]), 因此在正常的 program 下, ALZ bit 是要 disable. 否則會造成你現在遇到的狀況. 不曉得你們是否有其他的目的要打開這個 bit. 如果沒有建議把 ALZ disable.

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/