Exams › GATE › Technical
Which of the following must be true for the RFE (Return from Exception) instruction on a general purpose processor?
I. It must be a trap instruction
II. It must be a privileged instruction
III. An exception cannot be allowed to occur during execution of an RFE instruction
- I only
- II only
- I and II only
- I, II and III only
Correct answer: I, II and III only
Solution
The RFE instruction is designed to safely return from an exception, which necessitates it being a trap and privileged instruction to ensure proper control over the execution environment. Additionally, preventing exceptions during its execution is crucial to maintain system stability and integrity.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →