comment on rfid doing a swap-backup of the program, must find
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Nov 2023 07:14:58 +0000 (07:14 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:21 +0000 (19:26 +0000)
out why and fix it so that is not necessary

src/openpower/decoder/isa/caller.py

index ba6252c266a14fbac37a273619e8b53404150c31..73d8bc4040d3fd89b625386eb000467a227306a8 100644 (file)
@@ -1996,6 +1996,8 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
         # 2. Call the HDL implementation which invokes trap.
         # 3. Reroute the guest system call to host system call.
         # 4. Force return from the interrupt as if we had guest OS.
+        #    "executing" rfid requires putting 0x4c000024 temporarily
+        #    into the program at the PC. TODO investigate and remove
         if ((asmop in ("sc", "scv")) and
                 (self.syscall is not None) and
                 not syscall_emu_active):