msr and pc moved to "state" in PowerDecode2
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 4 Aug 2020 15:42:54 +0000 (16:42 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 4 Aug 2020 15:42:54 +0000 (16:42 +0100)
src/soc/decoder/isa/caller.py
src/soc/fu/compunits/test/test_compunit.py

index 7a25bf0bf39330dddfcd57ebead00cc167df6146..66e8ee49756db4b9d1359f9536b036ca80843d73 100644 (file)
@@ -513,8 +513,8 @@ class ISACaller:
 
         yield self.dec2.dec.raw_opcode_in.eq(ins & 0xffffffff)
         yield self.dec2.dec.bigendian.eq(self.bigendian)
-        yield self.dec2.msr.eq(self.msr.value)
-        yield self.dec2.cia.eq(pc)
+        yield self.dec2.state.msr.eq(self.msr.value)
+        yield self.dec2.state.pc.eq(pc)
 
     def execute_one(self):
         """execute one instruction
index 393e445b591a7fa70a7cd847a63167119f4fbcf2..3af4bb501ea8dc31a585b28e4b7299b7b998cb96 100644 (file)
@@ -209,8 +209,8 @@ class TestRunner(FHDLTestCase):
 
             # ask the decoder to decode this binary data (endian'd)
             yield pdecode2.dec.bigendian.eq(self.bigendian)  # le / be?
-            yield pdecode2.msr.eq(msr)  # set MSR "state"
-            yield pdecode2.cia.eq(pc)  # set PC "state"
+            yield pdecode2.state.msr.eq(msr)  # set MSR "state"
+            yield pdecode2.state.pc.eq(pc)  # set PC "state"
             yield instruction.eq(ins)          # raw binary instr.
             yield Settle()
             # debugging issue with branch