cc: fix bug with regbank snap
This commit is contained in:
parent
8dfa5addfd
commit
b01d6a4873
@ -219,7 +219,9 @@ class RegBank:
|
|||||||
self.loaded(var1, reg0)
|
self.loaded(var1, reg0)
|
||||||
|
|
||||||
def snap(self):
|
def snap(self):
|
||||||
return dict(self.vars), dict(self.cleanup)
|
cleanup = collections.defaultdict(list)
|
||||||
|
cleanup.update({r: list(c) for r, c in self.cleanup.items()})
|
||||||
|
return dict(self.vars), cleanup
|
||||||
|
|
||||||
def restore(self, snap):
|
def restore(self, snap):
|
||||||
self.reset()
|
self.reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user