always store full memory state (including zeros)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 18 Sep 2021 15:04:33 +0000 (16:04 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 18 Sep 2021 15:04:33 +0000 (16:04 +0100)
src/openpower/test/state.py

index 853da604054618f5ff16d09b025c7dd75df4acb0..4d904e9da5c483673e8d94bea8da6b4d13b77977 100644 (file)
@@ -124,8 +124,7 @@ class SimState(State):
         keys = list(self.sim.mem.mem.keys())
         self.mem = []
         for k in keys:
-            if self.sim.mem.mem[k] !=0:  # Don't store potential 0 for compare
-                self.mem.append(((k*8), self.sim.mem.mem[k]))
+            self.mem.append(((k*8), self.sim.mem.mem[k]))
 
 
 class ExpectedState(State):