From 6891172f1bffde3f2b322a9151c21964b8f6f35d Mon Sep 17 00:00:00 2001 From: colepoirier Date: Fri, 19 Jun 2020 18:30:54 -0700 Subject: [PATCH] Add code, commented-out, for TRAP so as to not break test_caller.py --- src/soc/decoder/isa/caller.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 7bf411fd..b3b2c171 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -297,6 +297,10 @@ class ISACaller: def TRAP(self, trap_addr=0x700): print ("TRAP: TODO") + #self.namespace['NIA'] = trap_addr + #self.SRR0 = self.namespace['CIA'] + 4 + #self.SRR1 = self.namespace['MSR'] + #self.namespace['MSR'][45] = 1 # store CIA(+4?) in SRR0, set NIA to 0x700 # store MSR in SRR1, set MSR to um errr something, have to check spec -- 2.30.2