Hardware Software Virtualization (reading question)

Please submit your response on Gradescope by Monday, May 1, 2023, 3pm PST.

Consider the isPrime code in Section 3.2.

  1. After translation, does isPrime run as unprivileged code or as privileged code?
  2. Give concrete inputs to eliminate the jumps to takenAddr and fallthrAddr3.