From 536b722c6567cea37fb23209a4dce42624adecd1 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 2 Nov 2023 07:14:58 +0000 Subject: [PATCH] comment on rfid doing a swap-backup of the program, must find out why and fix it so that is not necessary --- src/openpower/decoder/isa/caller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index ba6252c2..73d8bc40 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -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): -- 2.30.2