在学习mips下的中断,异常,写作业时候遇到两个问题,请大佬帮忙!!!

weixin_43416813 2020-03-21 08:03:20
第三题,查了资料,是这么说的CPU 会**完成**那条已**finish** MEM stage的指令。然后将exception victim定位在下一条(following)指令上。那么怎么回答 2 3 问呢。

关于第四题,我查询资料,我觉得两个小问,ALU overflow都具有高优先级,请问对吗?

谢谢


3. A processor is executing code and executes a divide instruction that divides by zero.
(a)Describe in the MIPS instruction set what state needs to be saved by the hardware interrupt mechanism.
(b)Assume that the interrupt handler reads registers R5, R6, R7 and writes registers R5, R8, R10.What registers does the interrupt handler need to save?
(c)What state does the ERET instruction change?

4.An instruction takes the following synchronous exceptions: Instruction Address Exception, ALU Overflow. What should the interrupt cause be loaded with? What if that same instruction has an external interrupt pending? Explain your reasoning?
...全文
41 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

1,068

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧