hrfid unit test sets up HSRR0 and HSRR1
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 14 Aug 2020 19:45:22 +0000 (20:45 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 14 Aug 2020 19:45:22 +0000 (20:45 +0100)
src/soc/fu/trap/test/test_pipe_caller.py

index 45fea5a23feb754522755525eaed58ac44d55421..aa45b6c757133362f8994069bb28a73cd6d315c0 100644 (file)
@@ -76,7 +76,7 @@ class TrapTestCase(TestAccumulatorBase):
         lst = ["hrfid"]
         initial_regs = [0] * 32
         initial_regs[1] = 1
-        initial_sprs = {'SRR0': 0x12345678, 'SRR1': 0x5678}
+        initial_sprs = {'HSRR0': 0x12345678, 'HSRR1': 0x5678}
         self.add_case(Program(lst, bigendian),
                       initial_regs, initial_sprs)