From e3a2ff27bf45a0609a661579e5ef570c35bb161a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 1 Jul 2020 17:47:29 +0100 Subject: [PATCH] print out msr for debug --- src/soc/decoder/isa/caller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 488df5ce..b79b9099 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -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))) -- 2.30.2