Add code, commented-out, for TRAP so as to not break test_caller.py
authorcolepoirier <colepoirier@gmail.com>
Sat, 20 Jun 2020 01:30:54 +0000 (18:30 -0700)
committercolepoirier <colepoirier@gmail.com>
Sat, 20 Jun 2020 01:30:54 +0000 (18:30 -0700)
src/soc/decoder/isa/caller.py

index 7bf411fd7cd541e6c96e16137b4bd1674fac422a..b3b2c17132db8afbc299e8ee50f23e18635f884f 100644 (file)
@@ -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