提交 60fe976f 编写于 作者: Y Yinan Xu

Revert "ram: temporarily disable assertion on rIdx out of bound (wait for icache uncache)"

This reverts commit 55e377db.
上级 37858d93
......@@ -215,9 +215,8 @@ void ram_finish() {
extern "C" uint64_t ram_read_helper(uint8_t en, uint64_t rIdx) {
if (en && rIdx >= RAMSIZE / sizeof(uint64_t)) {
printf("WARN: ram rIdx = 0x%lx out of bound!\n", rIdx);
// assert(rIdx < RAMSIZE / sizeof(uint64_t));
return 0x12345678deadbeafULL;
printf("ERROR: ram rIdx = 0x%lx out of bound!\n", rIdx);
assert(rIdx < RAMSIZE / sizeof(uint64_t));
}
return (en) ? ram[rIdx] : 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册