log writing CA[32]/OV[32] for OP_ADD
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 27 Sep 2023 04:39:31 +0000 (21:39 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 27 Sep 2023 04:39:31 +0000 (21:39 -0700)
src/openpower/decoder/isa/caller.py

index eaf0af47e6ffe97ac32d158a03c97ae3aa1c9fe0..c070337b96677f05cc34e0f8c47759a1fda4d218 100644 (file)
@@ -1535,10 +1535,14 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
                 # TODO: if 32-bit mode, set ov to ov32
                 self.spr['XER'][XER_bits['OV']] = ov
                 self.spr['XER'][XER_bits['OV32']] = ov32
+                log(f"write OV/OV32 OV={ov} OV32={ov32}",
+                    kind=LogKind.InstrInOuts)
             else:
                 # TODO: if 32-bit mode, set ca to ca32
                 self.spr['XER'][XER_bits['CA']] = ca
                 self.spr['XER'][XER_bits['CA32']] = ca32
+                log(f"write CA/CA32 CA={ca} CA32={ca32}",
+                    kind=LogKind.InstrInOuts)
             return
         inv_a = yield self.dec2.e.do.invert_in
         if inv_a: