move msr in test_loadstore1.py outside of conditional block
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Dec 2021 15:42:04 +0000 (15:42 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Dec 2021 15:42:04 +0000 (15:42 +0000)
src/soc/experiment/test/test_loadstore1.py

index 80be68bf5896b5f98b6831690e229f9418b1ce1c..5dc70423f0657e7ec65c0c02baec06ddff9611cf 100644 (file)
@@ -503,9 +503,9 @@ def _test_loadstore1(dut, mem):
 
     addr = 0x100e0
     data = 0xf553b658ba7e1f51
+    msr = MSRSpec(pr=0, dr=0, sf=0)
 
     if test_dcbz:
-        msr = MSRSpec(pr=0, dr=0, sf=0)
         yield from pi_st(pi, addr, data, 8, msr=msr)
         yield