print out msr for debug
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Jul 2020 16:47:29 +0000 (17:47 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Jul 2020 16:47:29 +0000 (17:47 +0100)
src/soc/decoder/isa/caller.py

index 488df5ceeaa88289edbb157ccf6ab622060e4266..b79b90995f80fce54681ca25d3f6f7ec0c171b6d 100644 (file)
@@ -583,6 +583,8 @@ class ISACaller:
                         self.spr[name] = output
                     else:
                         self.namespace[name].eq(output)
+                    if name == 'MSR':
+                        print ('msr written', hex(self.msr.value))
                 else:
                     regnum = yield getattr(self.decoder, name)
                     print('writing reg %d %s' % (regnum, str(output)))