get trap compunit test working, adding bigendian and msr
[soc.git] / src / soc / decoder / isa / caller.py
index f2ba7b28d9612765dd3dcdbb37ef38918edfdfe0..ad4318ecbe24b5c4f528153e419d8a225614f1c7 100644 (file)
@@ -598,10 +598,11 @@ class ISACaller:
             illegal = name != asmop
 
         if illegal:
-            print ("name %s != %s - calling ILLEGAL trap" % (name, asmop))
             self.TRAP(0x700, PI.ILLEG)
             self.namespace['NIA'] = self.trap_nia
             self.pc.update(self.namespace)
+            print ("name %s != %s - calling ILLEGAL trap, PC: %x" % \
+                    (name, asmop, self.pc.CIA.value))
             return
 
         info = self.instrs[name]