m1n1.hw.dart: Wait for invalidations to complete

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-01-16 18:58:48 +09:00
parent 78d1e5fd93
commit b388093d33

View file

@ -323,6 +323,8 @@ class DART(Reloadable):
def invalidate_streams(self, streams=0xffffffff):
self.regs.STREAM_SELECT.val = streams
self.regs.STREAM_COMMAND.val = R_STREAM_COMMAND(INVALIDATE=1)
while self.regs.STREAM_COMMAND.reg.BUSY:
pass
def invalidate_cache(self):
self.pt_cache = {}