whoops swapped trap test instructions accidentally
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Jul 2020 19:16:32 +0000 (20:16 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Jul 2020 19:16:32 +0000 (20:16 +0100)
src/soc/fu/trap/test/test_pipe_caller.py

index 1d3c7f8dc940847c486fa21a53bbbdf049125ce7..5ab41ee9ead831f4e19036f9a0c451bd36841235 100644 (file)
@@ -86,7 +86,7 @@ class TrapTestCase(FHDLTestCase):
         self.run_tst_program(Program(lst), initial_regs, initial_sprs)
 
     def test_0_trap_eq_imm(self):
-        insns = ["tw", "td"]
+        insns = ["twi", "tdi"]
         for i in range(2):
             choice = random.choice(insns)
             lst = [f"{choice} 4, 1, %d" % i] # TO=4: trap equal
@@ -95,7 +95,7 @@ class TrapTestCase(FHDLTestCase):
             self.run_tst_program(Program(lst), initial_regs)
 
     def test_0_trap_eq(self):
-        insns = ["twi", "tdi"]
+        insns = ["tw", "td"]
         for i in range(2):
             choice = insns[i]
             lst = [f"{choice} 4, 1, 2"] # TO=4: trap equal