This exercise examines how exception handling interacts with branch and load/sto
ID: 3613121 • Letter: T
Question
This exercise examines how exception handling interacts with branch and load/store instructions. Problems in this exercise refer to the following branch instruction and the corresponding delay slot instruction: Assume that this branch is correctly predicted is liken, but then the instruction at "Label" is an undefined instruction. Describe what is done in each pipeline stage for each cycle, starting with the cycle in which the branch is decoded up to the cycle in which the first instruction of the exception handler is fetched. Repeat Exercise 4.27.1, but this time assume that the instruction in the delay slot also causes a hardware error exception when it is in MEM stage. What is the value in the EPC if the branch, is taken but the delay slot causes an exception? What happens after the execution of the exception handler is completed? The remaining three problems in this exercise also refer to the following store instruction: What happens if the branch is taken, the instruction at ''Label" is an invalid instruction. the first instruction of the exception handler is the Sw instruction given above. and this store accesses an invalid data address? If load/store address computation can overflow, can we delay overflow exception detection into the MEM stage? Use the given store instruction to explain what happens. For debugging, it is useful to be able to detect when a particular value is written to a particular memory address. We want to add two new registers, WAD DR and WVAL. The processor should trigger an exception when the value.Explanation / Answer
x.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.